Fix more unary operator expected bugs on v2.x Signed-off-by: honma <ho...@ebay.com>
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/7c62e365 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/7c62e365 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/7c62e365 Branch: refs/heads/2.0-rc Commit: 7c62e3652d2b93a58e47c7fc629aeb184a00cc03 Parents: c2f523c Author: Hao Chen <h...@apache.org> Authored: Wed Jan 27 17:58:48 2016 +0800 Committer: honma <ho...@ebay.com> Committed: Wed Jan 27 21:51:12 2016 +0800 ---------------------------------------------------------------------- build/bin/kylin.sh | 10 +++++----- build/bin/metastore.sh | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/7c62e365/build/bin/kylin.sh ---------------------------------------------------------------------- diff --git a/build/bin/kylin.sh b/build/bin/kylin.sh index 107ca73..f52f923 100644 --- a/build/bin/kylin.sh +++ b/build/bin/kylin.sh @@ -113,14 +113,14 @@ then fi # streaming command -elif [ $1 == "streaming" ] +elif [ "$1" == "streaming" ] then if [ $# -lt 4 ] then echo "invalid input args $@" exit -1 fi - if [ $2 == "start" ] + if [ "$2" == "start" ] then #retrive $hive_dependency and $hbase_dependency @@ -142,7 +142,7 @@ then org.apache.kylin.engine.streaming.cli.StreamingCLI $@ > ${KYLIN_HOME}/logs/streaming_$3_$4.log 2>&1 & echo $! > ${KYLIN_HOME}/logs/$3_$4 & echo "streaming started name: $3 id: $4" exit 0 - elif [ $2 == "stop" ] + elif [ "$2" == "stop" ] then if [ ! -f "${KYLIN_HOME}/$3_$4" ] then @@ -165,7 +165,7 @@ then fi # monitor command -elif [ $1 == "monitor" ] +elif [ "$1" == "monitor" ] then echo "monitor job" @@ -189,7 +189,7 @@ then exit 0 # tool command -elif [[ $1 = org.apache.kylin.* ]] +elif [[ "$1" = org.apache.kylin.* ]] then #retrive $hive_dependency and $hbase_dependency source ${dir}/find-hive-dependency.sh http://git-wip-us.apache.org/repos/asf/kylin/blob/7c62e365/build/bin/metastore.sh ---------------------------------------------------------------------- diff --git a/build/bin/metastore.sh b/build/bin/metastore.sh index 8f237aa..05041f9 100755 --- a/build/bin/metastore.sh +++ b/build/bin/metastore.sh @@ -27,7 +27,7 @@ dir=$(dirname ${0}) source ${dir}/check-env.sh -if [ $1 == "backup" ] +if [ "$1" == "backup" ] then mkdir -p ${KYLIN_HOME}/meta_backups @@ -40,19 +40,19 @@ then ${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.common.persistence.ResourceTool download ${_file} echo "metadata store backed up to ${_file}" -elif [ $1 == "restore" ] +elif [ "$1" == "restore" ] then _file=$2 echo "Starting restoring $_file" ${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.common.persistence.ResourceTool upload $_file -elif [ $1 == "reset" ] +elif [ "$1" == "reset" ] then ${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.common.persistence.ResourceTool reset -elif [ $1 == "clean" ] +elif [ "$1" == "clean" ] then ${KYLIN_HOME}/bin/kylin.sh org.apache.kylin.engine.mr.steps.MetadataCleanupJob "${@:2}"