This is an automated email from the ASF dual-hosted git repository. casion pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/linkis.git
commit 5ab29e2b8e5080322d61202bbabe626a11a65a69 Author: 赵文恺 <[email protected]> AuthorDate: Sat Sep 16 12:34:32 2023 +0800 Update checkEnv.sh for SHELL、spark-sql、 HDFS command --- 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 36ba64bbe..4ce5ff8c9 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
