소스 검색

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

Sumit Mohanty 8 년 전
부모
커밋
77b4113ab5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py

+ 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",