From 43373fa9516143aad6d9bbdb489fa288941bef3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=96=87=E6=81=BA?= <129573858+zhaowenkai111@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:34:32 +0800 Subject: [PATCH] =?UTF-8?q?Update=20checkEnv.sh=20for=20SHELL=E3=80=81spar?= =?UTF-8?q?k-sql=E3=80=81=20HDFS=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linkis-dist/bin/checkEnv.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/linkis-dist/bin/checkEnv.sh b/linkis-dist/bin/checkEnv.sh index 36ba64bbe7..4ce5ff8c97 100644 --- a/linkis-dist/bin/checkEnv.sh +++ b/linkis-dist/bin/checkEnv.sh @@ -18,6 +18,7 @@ shellDir=`dirname $0` workDir=`cd ${shellDir}/..;pwd` source ${workDir}/bin/common.sh source ${workDir}/deploy-config/linkis-env.sh +source ${workDir}/deploy-config/db.sh say() { printf 'check command fail \n %s\n' "$1" @@ -108,6 +109,16 @@ echo "check sed" need_cmd sed echo "check lsof" need_cmd lsof + +echo "check hdfs" +need_cmd hdfs + +echo "check shell" +need_cmd $SHELL + +echo "check spark-sql" +need_cmd spark-sql + echo "<-----end to check used cmd---->" checkPythonAndJava @@ -130,6 +141,7 @@ check_service_port SERVER_PORT=$PUBLICSERVICE_PORT check_service_port + if [ "$portIsOccupy" = true ];then echo "The port is already in use, please check before installing" exit 1 @@ -139,12 +151,10 @@ if [ "$ENABLE_SPARK" == "true" ]; then checkSpark fi - if [ "$ENABLE_HDFS" == "true" ]; then checkHdfs fi - if [ "$ENABLE_HIVE" == "true" ]; then checkHive fi