ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [58/60] [abbrv] ambari git commit: AMBARI-18807. Ambari-agent user home directory permissions changed to accumulo:accumulo in non-root (aonishuk)
Date Mon, 07 Nov 2016 13:06:15 GMT
AMBARI-18807. Ambari-agent user home directory permissions changed to accumulo:accumulo in
non-root (aonishuk)


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

Branch: refs/heads/branch-feature-AMBARI-18634
Commit: 69c9690b86df5fff23a9d6f4f057f8f37b43bfe1
Parents: cfe0fc7
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon Nov 7 14:01:47 2016 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Nov 7 14:01:47 2016 +0200

----------------------------------------------------------------------
 .../ACCUMULO/1.6.1.2.2.0/package/scripts/accumulo_service.py    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/69c9690b/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 22c0ec4..d335adb 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
@@ -34,11 +34,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':
-      Directory(os.path.expanduser("~"), 
+      Directory(os.path.expanduser(format("~{accumulo_user}")),
                 owner = params.accumulo_user,
                 group = params.user_group,
-                recursive_ownership = True,
-                ignore_failures=True
+                recursive_ownership = True
       )
       
       if name != 'tserver':


Mime
View raw message