浏览代码

AMBARI-19442. Ownership is changed before the creation of directory in ZEPPELIN master.py (Renjith Kamath via smohanty)

Sumit Mohanty 8 年之前
父节点
当前提交
77b4113ab5

+ 1 - 1
ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py

@@ -116,7 +116,6 @@ class Master(Script):
     env.set_params(params)
     env.set_params(status_params)
     self.create_zeppelin_log_dir(env)
-    self.chown_zeppelin_pid_dir(env)
 
     # create the pid and zeppelin dirs
     Directory([params.zeppelin_pid_dir, params.zeppelin_dir],
@@ -126,6 +125,7 @@ class Master(Script):
               create_parents=True,
               mode=0755
     )
+    self.chown_zeppelin_pid_dir(env)
 
     # write out zeppelin-site.xml
     XmlConfig("zeppelin-site.xml",