Skip to content

Commit

Permalink
Update checkEnv.sh for SHELL、spark-sql、 HDFS command
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaowenkai111 authored Sep 16, 2023
1 parent 1aeaaea commit 43373fa
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions linkis-dist/bin/checkEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 43373fa

Please sign in to comment.