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 3718d9ec4   #5080 Fix the setting ENABLE_HDFS=false, need 'hdfs' cmd
3718d9ec4 is described below

commit 3718d9ec4f4e2380525367d31566c58ebe380c40
Author: gujincheng <[email protected]>
AuthorDate: Thu Feb 1 10:25:09 2024 +0800

      #5080 Fix the setting ENABLE_HDFS=false, need 'hdfs' cmd
---
 linkis-dist/bin/checkEnv.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/linkis-dist/bin/checkEnv.sh b/linkis-dist/bin/checkEnv.sh
index 049b2e117..b2ef5a82f 100644
--- a/linkis-dist/bin/checkEnv.sh
+++ b/linkis-dist/bin/checkEnv.sh
@@ -164,13 +164,9 @@ 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 hadoop"
-need_cmd hadoop
+
 
 echo -e "\n<-----end to check used cmd---->"
 
@@ -191,6 +187,10 @@ if [ "$ENABLE_SPARK" == "true" ]; then
 fi
 
 if [ "$ENABLE_HDFS" == "true" ]; then
+  echo "check hadoop cmd"
+  need_cmd hadoop
+  echo "check hdfs cmd"
+  need_cmd hdfs
   checkHdfs
 fi
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to