You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by xx...@apache.org on 2020/12/07 08:04:55 UTC

[kylin] branch document updated: [Document] Add solution of guava conflict error when start kylin

This is an automated email from the ASF dual-hosted git repository.

xxyu pushed a commit to branch document
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/document by this push:
     new 6ad26fd  [Document] Add solution of guava conflict error when start kylin
6ad26fd is described below

commit 6ad26fde2edafd8c7488d4ecb5a7d70d27a39b1b
Author: yaqian.zhang <59...@qq.com>
AuthorDate: Mon Dec 7 13:48:53 2020 +0800

    [Document] Add solution of guava conflict error when start kylin
---
 website/_docs/install/index.cn.md | 18 ++++++++++++++++++
 website/_docs/install/index.md    | 18 ++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/website/_docs/install/index.cn.md b/website/_docs/install/index.cn.md
index db7bc41..743d7cc 100644
--- a/website/_docs/install/index.cn.md
+++ b/website/_docs/install/index.cn.md
@@ -93,7 +93,25 @@ Check the log at /usr/local/apache-kylin-2.5.0-bin-hbase1x/logs/kylin.log
 Web UI is at http://<hostname>:7070/kylin
 ```
 
+**注**:如果在启动 kylin 时遇到如下报错(Hadoop3 环境下可能出现):
 
+```
+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
+```
+
+可以尝试如下方法解决:
+
+下载[guava-28.0-jre.jar](https://repo1.maven.org/maven2/com/google/guava/guava/28.0-jre/guava-28.0-jre.jar), 将其放到`$KYLIN_HOME/tool/` 和 `$KYLIN_HOME/tomcat/lib/`目录下,然后重启kylin `bin/kylin.sh restart`。
 
 ### 使用 Kylin
 
diff --git a/website/_docs/install/index.md b/website/_docs/install/index.md
index e2c8fb9..4db5c98 100644
--- a/website/_docs/install/index.md
+++ b/website/_docs/install/index.md
@@ -93,6 +93,24 @@ Check the log at /usr/local/apache-kylin-2.5.0-bin-hbase1x/logs/kylin.log
 Web UI is at http://<hostname>:7070/kylin
 ```
 
+**Note**: If you encounter the following error when starting kylin (possible in Hadoop3 environment):
+
+```
+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
+```
+
+You can try download [guava-28.0-jre.jar](https://repo1.maven.org/maven2/com/google/guava/guava/28.0-jre/guava-28.0-jre.jar), put it into `$KYLIN_HOME/tool/` and `$KYLIN_HOME/tomcat/lib/` and restart kylin `bin/kylin.sh restart`.
+
 ### Using Kylin
 
 Once Kylin is launched, you can access it via the browser `http://<hostname>:7070/kylin` with