首页 > 编程语言> > 启动 kylin 时遇到如下报错(Hadoop3 环境下可能出现):com.google.common.base.Preconditions.checkArgument(ZLjava/lang/Str
启动 kylin 时遇到如下报错(Hadoop3 环境下可能出现):com.google.common.base.Preconditions.checkArgument(ZLjava/lang/Str
作者:互联网
报错信息如下:
Caused by: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V at org.apache.hadoop.conf.Configuration.set(Configuration.java:1358) at org.apache.hadoop.conf.Configuration.set(Configuration.java:1339) at org.apache.kylin.common.util.HadoopUtil.healSickConfig(HadoopUtil.java:77) at org.apache.kylin.common.util.HadoopUtil.getCurrentConfiguration(HadoopUtil.java:63) at org.apache.kylin.storage.hbase.HBaseConnection.newHBaseConfiguration(HBaseConnection.java:170) at org.apache.kylin.storage.hbase.HBaseConnection.get(HBaseConnection.java:259) at org.apache.kylin.storage.hbase.HBaseResourceStore.getConnection(HBaseResourceStore.java:96) at org.apache.kylin.storage.hbase.HBaseResourceStore.createHTableIfNeeded(HBaseResourceStore.java:119) at org.apache.kylin.storage.hbase.HBaseResourceStore.<init>(HBaseResourceStore.java:89) ... 8 more
解决方法:
复制Hadoop集群中的guava依赖包到$KYLIN_HOME/tool/
和 $KYLIN_HOME/tomcat/lib/
目录下,然后重启kylin bin/kylin.sh restart
。
cp $HADOOP_HOME/share/hadoop/common/lib/guava-27.0-jre.jar $KYLIN_HOME/tool/ cp $HADOOP_HOME/share/hadoop/common/lib/guava-27.0-jre.jar $KYLIN_HOME/tomcat/lib/
标签:lang,Ljava,kylin,HBaseResourceStore,报错,org,apache,java,HOME 来源: https://www.cnblogs.com/ererciwan/p/15780718.html