Quellcode durchsuchen

AMBARI-5434. HDFS check failed during Start Services step (Enable Security). (jaimin)

Jaimin Jetly vor 11 Jahren
Ursprung
Commit
571e76213a

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HDFS/package/scripts/service_check.py

@@ -31,7 +31,7 @@ class HdfsServiceCheck(Script):
 
     safemode_command = "dfsadmin -safemode get | grep OFF"
 
-    create_dir_cmd = format("fs -mkdir {dir} ; hadoop fs -chmod -R 777 {dir}")
+    create_dir_cmd = format("fs -mkdir {dir} ; hadoop fs -chmod 777 {dir}")
     test_dir_exists = format("hadoop fs -test -e {dir}")
     cleanup_cmd = format("fs -rm {tmp_file}")
     #cleanup put below to handle retries; if retrying there wil be a stale file

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/service_check.py

@@ -31,7 +31,7 @@ class HdfsServiceCheck(Script):
 
     safemode_command = "dfsadmin -safemode get | grep OFF"
 
-    create_dir_cmd = format("fs -mkdir {dir} ; hadoop fs -chmod -R 777 {dir}")
+    create_dir_cmd = format("fs -mkdir {dir} ; hadoop fs -chmod 777 {dir}")
     test_dir_exists = format("hadoop fs -test -e {dir}")
     cleanup_cmd = format("fs -rm {tmp_file}")
     #cleanup put below to handle retries; if retrying there wil be a stale file