You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/08/31 19:01:24 UTC

[2/2] ambari git commit: AMBARI-12939. WebHcat server is not starting when added to secure cluster (aonishuk)

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

Branch: refs/heads/branch-2.1
Commit: fba0895648547fb0d03000dde4c66806c113a8ff
Parents: 31edb90
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Aug 31 20:01:05 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Aug 31 20:01:05 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/fba08956/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 fe52c36..e3cb97b 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/fba08956/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',