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

ambari git commit: AMBARI-12807 Accumulo Master Start fails on secure cluster if PID/Log dirs for YARN and MR2 are customized (dsen)

Repository: ambari
Updated Branches:
  refs/heads/trunk a6a0a5caa -> 0db24d6b8


AMBARI-12807 Accumulo Master Start fails on secure cluster if PID/Log dirs for YARN and MR2 are customized (dsen)


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

Branch: refs/heads/trunk
Commit: 0db24d6b8b35a510c7ccd982c8acfa1ff1a475e2
Parents: a6a0a5c
Author: Dmytro Sen <ds...@apache.org>
Authored: Tue Aug 18 16:02:40 2015 +0300
Committer: Dmytro Sen <ds...@apache.org>
Committed: Tue Aug 18 16:02:40 2015 +0300

----------------------------------------------------------------------
 .../ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_service.py     | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0db24d6b/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_service.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_service.py b/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_service.py
index 14050c3..6b3aae1 100644
--- a/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_service.py
+++ b/ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_service.py
@@ -31,6 +31,10 @@ def accumulo_service( name,
     pid_exists = format("ls {pid_file} >/dev/null 2>&1 && ps `cat {pid_file}` >/dev/null 2>&1")
 
     if action == 'start':
+      Execute(as_sudo(['chown','-R',params.accumulo_user+":"+params.user_group,
+                       format("$(getent passwd {accumulo_user} | cut -d: -f6)")],
+                      auto_escape=False),
+              ignore_failures=True)
       if name != 'tserver':
         Execute(format("{daemon_script} org.apache.accumulo.master.state.SetGoalState NORMAL"),
                 not_if=pid_exists,