You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/01/31 12:57:28 UTC

[30/53] [abbrv] incubator-kylin git commit: KYLIN-563 add some comments to kylin.sh

KYLIN-563 add some comments to 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/4704bd95
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/4704bd95
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/4704bd95

Branch: refs/heads/master
Commit: 4704bd95472e6c4c3f46f8b270a68d8f5eada9fa
Parents: 391f485
Author: honma <ho...@ebay.com>
Authored: Thu Jan 22 17:42:11 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Thu Jan 22 17:42:11 2015 +0800

----------------------------------------------------------------------
 kylin.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/4704bd95/kylin.sh
----------------------------------------------------------------------
diff --git a/kylin.sh b/kylin.sh
index 61333a7..bfe5b22 100755
--- a/kylin.sh
+++ b/kylin.sh
@@ -8,6 +8,14 @@ else
     echo "CATALINA_HOME is set to $CATALINA_HOME"
 fi
 
+#The location of all hadoop/hbase configurations are difficult to get.
+#Plus, some of the system properties are secretly set in hadoop/hbase shell command.
+#For example, in hdp 2.2, there is a system property called hdp.version,
+#which we cannot get until running hbase or hadoop shell command.
+#
+#To save all these troubles, we use hbase runjar to start tomcat.
+#In this way we no longer need to explicitly configure hadoop/hbase related classpath for tomcat,
+#hbase command will do all the dirty tasks for us:
 if [ "$1" = "start" ] ; then
         export HBASE_CLASSPATH_PREFIX=/etc/kylin:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar:${CATALINA_HOME}/lib/*:$HBASE_CLASSPATH_PREFIX
         hbase -Djava.util.logging.config.file=${CATALINA_HOME}/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true -Dspring.profiles.active=sandbox -Djava.endorsed.dirs=${CATALINA_HOME}/endorsed  -Dcatalina.base=${CATALINA_HOME} -Dcatalina.home=${CATALINA_HOME} -Djava.io.tmpdir=${CATALINA_HOME}/temp  org.apache.hadoop.util.RunJar ${CATALINA_HOME}/bin/bootstrap.jar  org.apache.catalina.startup.Bootstrap start > ${CATALINA_HOME}/logs/kylin_sandbox.log 2>&1 &