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/06/25 17:04:01 UTC

[1/2] ambari git commit: AMBARI-12144. Running hive jobs via webhcat goes into error "/usr/hdp/current/tez-client/conf/tez-env.sh (Permission denied)" (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 3c220186e -> c90bbbd3b
  refs/heads/trunk 85d89c699 -> d9ecee017


AMBARI-12144. Running hive jobs via webhcat goes into error "/usr/hdp/current/tez-client/conf/tez-env.sh (Permission denied)" (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d9ecee01
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d9ecee01
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d9ecee01

Branch: refs/heads/trunk
Commit: d9ecee0173f14ad3fd8da68698ef108aba2d4d10
Parents: 85d89c6
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Jun 25 18:03:48 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Jun 25 18:03:48 2015 +0300

----------------------------------------------------------------------
 .../common-services/TEZ/0.4.0.2.1/package/scripts/tez.py          | 3 ++-
 ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d9ecee01/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py b/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py
index 0901120..a9b246d 100644
--- a/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py
+++ b/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py
@@ -44,7 +44,8 @@ def tez():
 
   File(format("{config_dir}/tez-env.sh"),
        owner=params.tez_user,
-       content=InlineTemplate(params.tez_env_sh_template))
+       content=InlineTemplate(params.tez_env_sh_template),
+       mode=0555)
 
 
 @OsFamilyFuncImpl(os_family=OSConst.WINSRV_FAMILY)

http://git-wip-us.apache.org/repos/asf/ambari/blob/d9ecee01/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py b/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py
index 63f85d0..966ea43 100644
--- a/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py
+++ b/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py
@@ -57,7 +57,8 @@ class TestTezClient(RMFTestCase):
 
     self.assertResourceCalled('File', '/etc/tez/conf/tez-env.sh',
       owner = 'tez',
-      content = InlineTemplate(self.getConfig()['configurations']['tez-env']['content'])
+      content = InlineTemplate(self.getConfig()['configurations']['tez-env']['content']),
+      mode=0555
     )
 
     self.assertNoMoreResources()


[2/2] ambari git commit: AMBARI-12144. Running hive jobs via webhcat goes into error "/usr/hdp/current/tez-client/conf/tez-env.sh (Permission denied)" (aonishuk)

Posted by ao...@apache.org.
AMBARI-12144. Running hive jobs via webhcat goes into error "/usr/hdp/current/tez-client/conf/tez-env.sh (Permission denied)" (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c90bbbd3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c90bbbd3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c90bbbd3

Branch: refs/heads/branch-2.1
Commit: c90bbbd3b6aa32a53e206b42fdf877f44b2a5a05
Parents: 3c22018
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Jun 25 18:03:52 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Jun 25 18:03:52 2015 +0300

----------------------------------------------------------------------
 .../common-services/TEZ/0.4.0.2.1/package/scripts/tez.py          | 3 ++-
 ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c90bbbd3/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py b/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py
index 0901120..a9b246d 100644
--- a/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py
+++ b/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/tez.py
@@ -44,7 +44,8 @@ def tez():
 
   File(format("{config_dir}/tez-env.sh"),
        owner=params.tez_user,
-       content=InlineTemplate(params.tez_env_sh_template))
+       content=InlineTemplate(params.tez_env_sh_template),
+       mode=0555)
 
 
 @OsFamilyFuncImpl(os_family=OSConst.WINSRV_FAMILY)

http://git-wip-us.apache.org/repos/asf/ambari/blob/c90bbbd3/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py b/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py
index 63f85d0..966ea43 100644
--- a/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py
+++ b/ambari-server/src/test/python/stacks/2.1/TEZ/test_tez_client.py
@@ -57,7 +57,8 @@ class TestTezClient(RMFTestCase):
 
     self.assertResourceCalled('File', '/etc/tez/conf/tez-env.sh',
       owner = 'tez',
-      content = InlineTemplate(self.getConfig()['configurations']['tez-env']['content'])
+      content = InlineTemplate(self.getConfig()['configurations']['tez-env']['content']),
+      mode=0555
     )
 
     self.assertNoMoreResources()