Repository: ambari Updated Branches: refs/heads/branch-2.6 f4f9d6862 -> 3417682d9
AMBARI-22373.Disable auto config of interpreter.json at the time of installation(Prabhjyot Singh via Venkata Sairam) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3417682d Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3417682d Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3417682d Branch: refs/heads/branch-2.6 Commit: 3417682d95b14d312e35a1fd381b2a5eb4ff02ce Parents: f4f9d68 Author: Venkata Sairam <[email protected]> Authored: Thu Nov 9 11:50:06 2017 +0530 Committer: Venkata Sairam <[email protected]> Committed: Thu Nov 9 11:55:28 2017 +0530 ---------------------------------------------------------------------- .../ZEPPELIN/0.7.0/package/scripts/master.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/3417682d/ambari-server/src/main/resources/common-services/ZEPPELIN/0.7.0/package/scripts/master.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/ZEPPELIN/0.7.0/package/scripts/master.py b/ambari-server/src/main/resources/common-services/ZEPPELIN/0.7.0/package/scripts/master.py index 6ccdfba..5efc277 100644 --- a/ambari-server/src/main/resources/common-services/ZEPPELIN/0.7.0/package/scripts/master.py +++ b/ambari-server/src/main/resources/common-services/ZEPPELIN/0.7.0/package/scripts/master.py @@ -257,7 +257,6 @@ class Master(Script): if not glob.glob(params.conf_dir + "/interpreter.json") and \ not os.path.exists(params.conf_dir + "/interpreter.json"): self.create_interpreter_json() - self.update_zeppelin_interpreter() if params.zeppelin_interpreter_config_upgrade == True: self.reset_interpreter_settings() @@ -599,6 +598,16 @@ class Master(Script): group=params.zeppelin_group, mode=0664) + if params.conf_stored_in_hdfs: + params.HdfsResource(self.get_zeppelin_conf_FS(params), + type="file", + action="create_on_execute", + source=format("{params.conf_dir}/interpreter.json"), + owner=params.zeppelin_user, + recursive_chown=True, + recursive_chmod=True, + replace_existing_files=True) + def get_zeppelin_spark_dependencies(self): import params return glob.glob(params.zeppelin_dir + '/interpreter/spark/dep/zeppelin-spark-dependencies*.jar')
