ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From avija...@apache.org
Subject ambari git commit: AMBARI-19204 : Metrics monitor start failed after deleting AMS and reinstalling with different user. (avijayan)
Date Thu, 15 Dec 2016 18:11:25 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk c74df6f57 -> 7bf3a098c


AMBARI-19204 : Metrics monitor start failed after deleting AMS and reinstalling with different
user. (avijayan)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7bf3a098
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7bf3a098
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7bf3a098

Branch: refs/heads/trunk
Commit: 7bf3a098cb2e38692751fd51b5ebf7470b5c9cb9
Parents: c74df6f
Author: Aravindan Vijayan <avijayan@hortonworks.com>
Authored: Thu Dec 15 10:11:20 2016 -0800
Committer: Aravindan Vijayan <avijayan@hortonworks.com>
Committed: Thu Dec 15 10:11:20 2016 -0800

----------------------------------------------------------------------
 .../common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7bf3a098/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
index 1795227..a766bad 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
+++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
@@ -366,6 +366,9 @@ def ams(name=None, action=None):
               create_parents = True
     )
 
+    Execute(format("{sudo} chown -R {ams_user}:{user_group} {ams_monitor_log_dir}")
+            )
+
     Directory(params.ams_monitor_pid_dir,
               owner=params.ams_user,
               group=params.user_group,


Mime
View raw message