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 2018/02/01 01:43:25 UTC

kylin git commit: KYLIN-3216

Repository: kylin
Updated Branches:
  refs/heads/master 490891e39 -> c77183343


KYLIN-3216

Signed-off-by: shaofengshi <sh...@apache.org>


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

Branch: refs/heads/master
Commit: c771833434523aecef2e6f33d9055a92a2c6f7cb
Parents: 490891e
Author: xingpeng1 <xi...@zte.com.cn>
Authored: Wed Jan 31 18:16:35 2018 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Thu Feb 1 09:43:13 2018 +0800

----------------------------------------------------------------------
 build/bin/check-env.sh | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/c7718334/build/bin/check-env.sh
----------------------------------------------------------------------
diff --git a/build/bin/check-env.sh b/build/bin/check-env.sh
index 7534d12..cd745d4 100755
--- a/build/bin/check-env.sh
+++ b/build/bin/check-env.sh
@@ -62,8 +62,22 @@ then
     quit "Failed to create $WORKING_DIR. Please make sure the user has right to access $WORKING_DIR"
 fi
 
-hadoop ${hadoop_conf_param} fs -mkdir -p $WORKING_DIR/spark-history
-if [ $? != 0 ]
+SPARK_EVENTLOG_DIR=`bash $KYLIN_HOME/bin/get-properties.sh kylin.engine.spark-conf.spark.eventLog.dir`
+if [ -n "$SPARK_EVENTLOG_DIR" ]
+then
+    hadoop ${hadoop_conf_param} fs -mkdir -p $SPARK_EVENTLOG_DIR
+    if [ $? != 0 ]
+    then
+        quit "Failed to create $SPARK_EVENTLOG_DIR. Please make sure the user has right to access $SPARK_EVENTLOG_DIR"
+    fi
+fi
+
+SPARK_HISTORYLOG_DIR=`bash $KYLIN_HOME/bin/get-properties.sh kylin.engine.spark-conf.spark.history.fs.logDirectory`
+if [ -n "$SPARK_HISTORYLOG_DIR" ]
 then
-    quit "Failed to create $WORKING_DIR/spark-history. Please make sure the user has right to access $WORKING_DIR"
+    hadoop ${hadoop_conf_param} fs -mkdir -p $SPARK_HISTORYLOG_DIR
+    if [ $? != 0 ]
+    then
+        quit "Failed to create $SPARK_HISTORYLOG_DIR. Please make sure the user has right to access $SPARK_HISTORYLOG_DIR"
+    fi
 fi
\ No newline at end of file