Java教程

启动 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/

 

这篇关于启动 kylin 时遇到如下报错(Hadoop3 环境下可能出现):com.google.common.base.Preconditions.checkArgument(ZLjava/lang/Str的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!