kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billy...@apache.org
Subject [3/8] kylin git commit: minor update find kafka dependency script
Date Tue, 13 Dec 2016 07:25:32 GMT
minor update find kafka dependency script


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/740c2201
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/740c2201
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/740c2201

Branch: refs/heads/yang22-hbase1.x
Commit: 740c220171b98df36daddd8d64acbda98807ce80
Parents: 25bbb30
Author: Billy Liu <billyliu@apache.org>
Authored: Fri Dec 9 15:23:12 2016 +0800
Committer: Billy Liu <billyliu@apache.org>
Committed: Fri Dec 9 15:23:37 2016 +0800

----------------------------------------------------------------------
 build/bin/find-kafka-dependency.sh | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/740c2201/build/bin/find-kafka-dependency.sh
----------------------------------------------------------------------
diff --git a/build/bin/find-kafka-dependency.sh b/build/bin/find-kafka-dependency.sh
index bda9b77..d3219e7 100644
--- a/build/bin/find-kafka-dependency.sh
+++ b/build/bin/find-kafka-dependency.sh
@@ -21,16 +21,16 @@ source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh
 
 kafka_home=
 
+echo Retrieving kafka dependency...
 if [ -n "$KAFKA_HOME" ]
 then
-    echo "KAFKA_HOME is set to: $KAFKA_HOME, use it to locate kafka dependencies."
+    verbose "KAFKA_HOME is set to: $KAFKA_HOME, use it to locate kafka dependencies."
     kafka_home=$KAFKA_HOME
 fi
 
 if [ -z "$KAFKA_HOME" ]
 then
-    echo "Couldn't find kafka home. Please set KAFKA_HOME to the path which contains kafka
dependencies."
-    exit 1
+    quit "Couldn't find kafka home. Please set KAFKA_HOME to the path which contains kafka
dependencies."
 fi
 
 # works for kafka 9+
@@ -41,13 +41,12 @@ then
     kafka_dependency=`find -L $kafka_home -name 'kafka_[a-z0-9A-Z\.-]*.jar' ! -name '*doc*'
! -name '*test*' ! -name '*sources*' ''-printf '%p:' | sed 's/:$//'`
     if [ -z "$kafka_dependency" ]
     then
-        echo "kafka client lib not found"
-        exit 1
+        quit "kafka client lib not found"
     else
-        echo "kafka dependency: $kafka_dependency"
+        verbose "kafka dependency: $kafka_dependency"
         export kafka_dependency
     fi
 else
-    echo "kafka dependency: $kafka_dependency"
+    verbose "kafka dependency: $kafka_dependency"
     export kafka_dependency
 fi


Mime
View raw message