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

[kylin] 02/02: KYLIN-4598 Missing dependency when run kylin.sh org.apache.kylin.*

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

nic pushed a commit to branch v3.1.0-release
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 4512b8948db90c43c348e1f3d61326587aeb9961
Author: Zhichao Zhang <44...@qq.com>
AuthorDate: Mon Jun 22 23:47:55 2020 +0800

    KYLIN-4598 Missing dependency when run kylin.sh org.apache.kylin.*
    
    Problems:
    It throws 'NoClassDefFoundError: org/apache/kafka/clients/producer/Producer' when run kylin.sh org.apache.kylin.source.kafka.util.KafkaSampleProducer.
    
    Solutions:
    Add 'export kafka_dependency' before export HBASE_CLASSPATH in kylin.sh
---
 build/bin/kylin.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build/bin/kylin.sh b/build/bin/kylin.sh
index 59d6de7..d56976b 100755
--- a/build/bin/kylin.sh
+++ b/build/bin/kylin.sh
@@ -40,10 +40,16 @@ function retrieveDependency() {
         source ${dir}/cached-hive-dependency.sh
         source ${dir}/cached-hbase-dependency.sh
         source ${dir}/cached-hadoop-conf-dir.sh
+        source ${dir}/cached-kafka-dependency.sh
+        source ${dir}/cached-spark-dependency.sh
+        source ${dir}/cached-flink-dependency.sh
     else
         source ${dir}/find-hive-dependency.sh
         source ${dir}/find-hbase-dependency.sh
         source ${dir}/find-hadoop-conf-dir.sh
+        source ${dir}/find-kafka-dependency.sh
+        source ${dir}/find-spark-dependency.sh
+        source ${dir}/find-flink-dependency.sh
     fi
 
     #retrive $KYLIN_EXTRA_START_OPTS