From 08e2240c35f46db88edb4fead78292b876faa98b Mon Sep 17 00:00:00 2001 From: "peng.jianhua" Date: Tue, 28 Nov 2017 10:23:45 +0800 Subject: [PATCH 1/1] KYLIN-3063 - load-hive-conf.sh should not get the commented configuration item --- build/bin/load-hive-conf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/bin/load-hive-conf.sh b/build/bin/load-hive-conf.sh index 7639a344f..082dbd04f 100755 --- a/build/bin/load-hive-conf.sh +++ b/build/bin/load-hive-conf.sh @@ -22,8 +22,8 @@ source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh # source me hive_conf_dir="${KYLIN_HOME}/conf/kylin_hive_conf.xml" -names=(`sed -n 's|\(.*\)|\1|p' ${hive_conf_dir} | sed 's/ \+//g'`) -values=(`sed -n 's|\(.*\)|\1|p' ${hive_conf_dir} | sed 's/ \+//g'`) +names=(`sed -n '//!p' ${hive_conf_dir} | sed -n 's|\(.*\)|\1|p' | sed 's/ \+//g'`) +values=(`sed -n '//!p' ${hive_conf_dir} | sed -n 's|\(.*\)|\1|p' | sed 's/ \+//g'`) len_names=${#names[@]} len_values=${#values[@]} -- 2.11.0.windows.1