Repository: ambari Updated Branches: refs/heads/trunk 5d081baeb -> c7c5a1b98
AMBARI-14054: HAWQ gives ownership of hawq parent directory to hawq_user(mithmatt via jaoki) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c7c5a1b9 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c7c5a1b9 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c7c5a1b9 Branch: refs/heads/trunk Commit: c7c5a1b981d8140ef347e40e924031377b9be937 Parents: 5d081ba Author: Jun Aoki <ja...@apache.org> Authored: Wed Dec 2 13:12:10 2015 -0800 Committer: Jun Aoki <ja...@apache.org> Committed: Wed Dec 2 13:12:10 2015 -0800 ---------------------------------------------------------------------- .../common-services/HAWQ/2.0.0/package/scripts/hawqsegment.py | 3 --- .../common-services/HAWQ/2.0.0/package/scripts/master_helper.py | 3 --- 2 files changed, 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/c7c5a1b9/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqsegment.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqsegment.py b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqsegment.py index 0e349d2..e0bc75c 100644 --- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqsegment.py +++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqsegment.py @@ -84,9 +84,6 @@ class HawqSegment(Script): utils.create_dir_as_hawq_user(params.hawq_segment_dir) utils.create_dir_as_hawq_user(params.hawq_segment_temp_dir.split(',')) - Execute("chown {0}:{1} {2}".format(constants.hawq_user, constants.hawq_group, os.path.dirname(params.hawq_segment_dir)), - user=constants.root_user, timeout=constants.default_exec_timeout) - # Initialize hawq segment utils.exec_hawq_operation(constants.INIT, "{0} -a -v".format(constants.SEGMENT)) http://git-wip-us.apache.org/repos/asf/ambari/blob/c7c5a1b9/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py index fdfd7c9..71b02aa 100644 --- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py +++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py @@ -79,9 +79,6 @@ def __create_local_dirs(): utils.create_dir_as_hawq_user(params.hawq_master_dir) utils.create_dir_as_hawq_user(params.hawq_master_temp_dir.split(',')) - Execute("chown {0}:{1} {2}".format(constants.hawq_user, constants.hawq_group, os.path.dirname(params.hawq_master_dir)), - user=constants.root_user, timeout=constants.default_exec_timeout) - Execute("chmod 700 {0}".format(params.hawq_master_dir), user=constants.root_user, timeout=constants.default_exec_timeout)