AMBARI-21708. History Server cannot be started due to wrong permissions of /mr-history
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4e3f7ebe Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4e3f7ebe Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4e3f7ebe Branch: refs/heads/feature-branch-AMBARI-21307 Commit: 4e3f7ebe06b146c5e676e3a81f1f159f26e74252 Parents: d9c271a Author: Attila Doroszlai <adorosz...@hortonworks.com> Authored: Fri Aug 11 10:09:46 2017 +0200 Committer: Attila Doroszlai <adorosz...@hortonworks.com> Committed: Mon Aug 14 09:20:47 2017 +0200 ---------------------------------------------------------------------- .../common-services/YARN/2.1.0.2.0/package/scripts/yarn.py | 2 +- .../src/test/python/stacks/2.0.6/YARN/test_historyserver.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/4e3f7ebe/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py index 28d14fe..1177107 100644 --- a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py +++ b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py @@ -327,6 +327,7 @@ def setup_historyserver(): action="create_on_execute", owner=params.mapred_user, group=params.user_group, + change_permissions_for_parents=True, mode=0777 ) params.HdfsResource(None, action="execute") @@ -401,7 +402,6 @@ def setup_resourcemanager(): params.HdfsResource(params.node_labels_dir, type="directory", action="create_on_execute", - change_permissions_for_parents=True, owner=params.yarn_user, group=params.user_group, mode=0700 http://git-wip-us.apache.org/repos/asf/ambari/blob/4e3f7ebe/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py b/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py index ba3d0ab..6a99dfa 100644 --- a/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py +++ b/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py @@ -330,6 +330,7 @@ class TestHistoryServer(RMFTestCase): security_enabled = False, hadoop_conf_dir = '/etc/hadoop/conf', keytab = UnknownConfigurationMock(), + change_permissions_for_parents = True, kinit_path_local = '/usr/bin/kinit', user = 'hdfs', dfs_type = '', @@ -596,6 +597,7 @@ class TestHistoryServer(RMFTestCase): security_enabled = True, hadoop_conf_dir = '/etc/hadoop/conf', keytab = '/etc/security/keytabs/hdfs.headless.keytab', + change_permissions_for_parents = True, kinit_path_local = '/usr/bin/kinit', user = 'hdfs', dfs_type = '',