You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/10/26 10:08:03 UTC
[17/45] incubator-kylin git commit: minor,
add tool command in kylin.sh
minor, add tool command in kylin.sh
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/9ac01db5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/9ac01db5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/9ac01db5
Branch: refs/heads/master
Commit: 9ac01db5ffc71d115991e1635d823406b5d68e52
Parents: 6adf4a1
Author: Li, Yang <ya...@ebay.com>
Authored: Mon Sep 28 13:49:52 2015 +0800
Committer: Li, Yang <ya...@ebay.com>
Committed: Mon Sep 28 16:47:51 2015 +0800
----------------------------------------------------------------------
bin/kylin.sh | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9ac01db5/bin/kylin.sh
----------------------------------------------------------------------
diff --git a/bin/kylin.sh b/bin/kylin.sh
index ea84f22..1334ed1 100644
--- a/bin/kylin.sh
+++ b/bin/kylin.sh
@@ -21,6 +21,7 @@ dir=$(dirname ${0})
source ${dir}/check-env.sh
mkdir -p ${KYLIN_HOME}/logs
+# start command
if [ $1 == "start" ]
then
@@ -80,6 +81,8 @@ then
fi
echo "You can check the log at ${tomcat_root}/logs/kylin.log"
exit 0
+
+# stop command
elif [ $1 == "stop" ]
then
if [ ! -f "${KYLIN_HOME}/pid" ]
@@ -98,6 +101,22 @@ then
fi
rm ${KYLIN_HOME}/pid
exit 0
+
+# tool command
+elif [[ $1 = org.apache.kylin.* ]]
+then
+ #retrive $hive_dependency and $hbase_dependency
+ source ${dir}/find-hive-dependency.sh
+ source ${dir}/find-hbase-dependency.sh
+ #retrive $KYLIN_EXTRA_START_OPTS
+ if [ -f "${dir}/setenv-tool.sh" ]
+ then source ${dir}/setenv-tool.sh
+ fi
+
+ export HBASE_CLASSPATH=${KYLIN_HOME}/lib/*:$hive_dependency:${HBASE_CLASSPATH}
+
+ exec hbase "$@"
+
else
echo "usage: kylin.sh start or kylin.sh stop"
exit 1