From 2798898b5337d5de853e2c90d5349dd8f7724a58 Mon Sep 17 00:00:00 2001 From: "peng.jianhua" Date: Fri, 21 Apr 2017 17:39:01 +0800 Subject: [PATCH 1/1] KYLIN-2559 Failed to create HDFS directory --- build/bin/check-env.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/bin/check-env.sh b/build/bin/check-env.sh index a0e91c411..a3170c70e 100644 --- a/build/bin/check-env.sh +++ b/build/bin/check-env.sh @@ -49,6 +49,11 @@ then fi WORKING_DIR=`bash $KYLIN_HOME/bin/get-properties.sh kylin.env.hdfs-working-dir` +if [ -z "$WORKING_DIR" ] +then + quit "Please set kylin.env.hdfs-working-dir in kylin.properties" +fi + hadoop ${hadoop_conf_param} fs -mkdir -p $WORKING_DIR if [ $? != 0 ] then -- 2.11.0.windows.1