You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by av...@apache.org on 2016/12/15 18:10:54 UTC

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

Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 47dabf349 -> 5e7a7b603


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/5e7a7b60
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5e7a7b60
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5e7a7b60

Branch: refs/heads/branch-2.5
Commit: 5e7a7b6035251b59ccc375adbf39ccf941b531c5
Parents: 47dabf3
Author: Aravindan Vijayan <av...@hortonworks.com>
Authored: Thu Dec 15 10:10:01 2016 -0800
Committer: Aravindan Vijayan <av...@hortonworks.com>
Committed: Thu Dec 15 10:10:01 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/5e7a7b60/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 d9fd9f6..1ad3b85 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
@@ -361,6 +361,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,