Skip to content

Commit

Permalink
Check spark commands only when ENABLE_SPARK is true and fix the last …
Browse files Browse the repository at this point in the history
…print
  • Loading branch information
wForget committed Nov 27, 2023
1 parent d7512fa commit c7af77e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions linkis-dist/bin/checkEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,6 @@ echo "check hdfs"
need_cmd hdfs
echo "check shell"
need_cmd $SHELL
echo "check spark-submit"
need_cmd spark-submit
echo "check spark-shell"
need_cmd spark-shell
echo "check spark-sql"
need_cmd spark-sql
echo "check hadoop"
need_cmd hadoop

Expand All @@ -187,6 +181,12 @@ checkPythonAndJava
checkMysql

if [ "$ENABLE_SPARK" == "true" ]; then
echo "check spark-submit"
need_cmd spark-submit
echo "check spark-shell"
need_cmd spark-shell
echo "check spark-sql"
need_cmd spark-sql
checkSpark
fi

Expand Down Expand Up @@ -227,4 +227,4 @@ if [ "$portIsOccupy" = true ];then
exit 1
fi

echo "\n <-----End to check service Port---->"
echo -e "\n<-----End to check service Port---->"

0 comments on commit c7af77e

Please sign in to comment.