Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR] Check spark commands only when ENABLE_SPARK is true and fix the last print #4984

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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---->"
Loading