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

Branch: refs/heads/branch-2.5
Commit: 0665b9a16d74b90e9d6b00fa7643ad5d8cfb906d
Parents: 532ec32
Author: Andrew Onishuk <[email protected]>
Authored: Mon Nov 7 14:01:50 2016 +0200
Committer: Andrew Onishuk <[email protected]>
Committed: Mon Nov 7 14:01:50 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/0665b9a1/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 33d3273..e3bb52d 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
@@ -33,11 +33,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':

Reply via email to