Repository: ambari Updated Branches: refs/heads/branch-2.1 31edb90b2 -> fba089564 refs/heads/trunk 9a5dc13f0 -> 59bc26139
AMBARI-12939. WebHcat server is not starting when added to secure cluster (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/59bc2613 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/59bc2613 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/59bc2613 Branch: refs/heads/trunk Commit: 59bc26139325ab0d85c4afe9a6d389064a3e8bd5 Parents: 9a5dc13 Author: Andrew Onishuk <aonis...@hortonworks.com> Authored: Mon Aug 31 20:01:00 2015 +0300 Committer: Andrew Onishuk <aonis...@hortonworks.com> Committed: Mon Aug 31 20:01:00 2015 +0300 ---------------------------------------------------------------------- .../common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py | 3 ++- .../src/test/python/stacks/2.0.6/HIVE/test_webhcat_server.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/59bc2613/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py index bfdfbee..48b5cbc 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py @@ -61,7 +61,8 @@ def webhcat(): Directory(params.config_dir, recursive=True, owner=params.webhcat_user, - group=params.user_group) + group=params.user_group, + cd_access="a") if params.security_enabled: kinit_if_needed = format("{kinit_path_local} -kt {hdfs_user_keytab} {hdfs_principal_name};") http://git-wip-us.apache.org/repos/asf/ambari/blob/59bc2613/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_webhcat_server.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_webhcat_server.py b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_webhcat_server.py index d558fcc..469f6a2 100644 --- a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_webhcat_server.py +++ b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_webhcat_server.py @@ -156,6 +156,7 @@ class TestWebHCatServer(RMFTestCase): owner = 'hcat', group = 'hadoop', recursive = True, + cd_access = 'a' ) self.assertResourceCalled('XmlConfig', 'webhcat-site.xml', owner = 'hcat', @@ -197,6 +198,7 @@ class TestWebHCatServer(RMFTestCase): owner = 'hcat', group = 'hadoop', recursive = True, + cd_access = 'a' ) self.assertResourceCalled('Execute', '/usr/bin/kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs;', path = ['/bin'], @@ -438,7 +440,8 @@ class TestWebHCatServer(RMFTestCase): self.assertResourceCalled('Directory', '/usr/hdp/current/hive-webhcat/etc/webhcat', owner = 'hcat', group = 'hadoop', - recursive = True) + recursive = True, + cd_access = 'a',) self.assertResourceCalled('XmlConfig', 'webhcat-site.xml', owner = 'hcat',