This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/master by this push:
new a8fb845f8 Check spark commands only when ENABLE_SPARK is true and fix
the last print (#4984)
a8fb845f8 is described below
commit a8fb845f8ac3436d2918b66bff67531fb2bced80
Author: Zhen Wang <[email protected]>
AuthorDate: Mon Nov 27 15:47:15 2023 +0800
Check spark commands only when ENABLE_SPARK is true and fix the last print
(#4984)
---
linkis-dist/bin/checkEnv.sh | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/linkis-dist/bin/checkEnv.sh b/linkis-dist/bin/checkEnv.sh
index 68682a233..d86a76385 100644
--- a/linkis-dist/bin/checkEnv.sh
+++ b/linkis-dist/bin/checkEnv.sh
@@ -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
@@ -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
@@ -227,4 +227,4 @@ if [ "$portIsOccupy" = true ];then
exit 1
fi
-echo "\n <-----End to check service Port---->"
\ No newline at end of file
+echo -e "\n<-----End to check service Port---->"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]