Browse Source

AMBARI-12401. Oozie Server start failed and RegionServers down after Node Labels enabled (Eugene Chekanskiy via smlohanty)

Sumit Mohanty 10 years ago
parent
commit
0dae8c33ea

+ 2 - 2
ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py

@@ -356,9 +356,9 @@ class HdfsResourceWebHDFS:
     
     
     
     
   def _fill_in_parent_directories(self, target, results):
   def _fill_in_parent_directories(self, target, results):
-    path_parts = self.util.parse_path(target).split("/") 
+    path_parts = self.util.parse_path(target).split("/")[1:]# [1:] remove '' from parts
     path = "/"
     path = "/"
-    
+
     for path_part in path_parts:
     for path_part in path_parts:
       path += path_part + "/"
       path += path_part + "/"
       results.append(path)
       results.append(path)