报错信息如下:
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/