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-dev-patch-upgrade Commit: 69c9690b86df5fff23a9d6f4f057f8f37b43bfe1 Parents: cfe0fc7 Author: Andrew Onishuk <aonis...@hortonworks.com> Authored: Mon Nov 7 14:01:47 2016 +0200 Committer: Andrew Onishuk <aonis...@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':