You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2015/04/20 15:45:53 UTC
ambari git commit: AMBARI-10596. Tez Service check fails after
enabling HA.(vbrodetskyi)
Repository: ambari
Updated Branches:
refs/heads/trunk 9a41fd16f -> 38a9bbae5
AMBARI-10596. Tez Service check fails after enabling HA.(vbrodetskyi)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/38a9bbae
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/38a9bbae
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/38a9bbae
Branch: refs/heads/trunk
Commit: 38a9bbae5c62258436f15f969cae06c2027f64e7
Parents: 9a41fd1
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Mon Apr 20 01:09:10 2015 +0300
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Mon Apr 20 01:09:10 2015 +0300
----------------------------------------------------------------------
.../TEZ/0.4.0.2.1/package/scripts/service_check.py | 6 ++++++
.../src/test/python/stacks/2.1/TEZ/test_service_check.py | 11 +++++++++++
2 files changed, 17 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/38a9bbae/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/service_check.py b/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/service_check.py
index 35ae5b6..6786eba 100644
--- a/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/service_check.py
+++ b/ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/package/scripts/service_check.py
@@ -59,6 +59,12 @@ class TezServiceCheckLinux(TezServiceCheck):
bin_dir = params.hadoop_bin_dir
)
+ params.HdfsDirectory("/tmp",
+ action="create",
+ owner=params.hdfs_user,
+ mode=0777
+ )
+
ExecuteHadoop( create_input_dir_cmd,
tries = 3,
try_sleep = 5,
http://git-wip-us.apache.org/repos/asf/ambari/blob/38a9bbae/ambari-server/src/test/python/stacks/2.1/TEZ/test_service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.1/TEZ/test_service_check.py b/ambari-server/src/test/python/stacks/2.1/TEZ/test_service_check.py
index cf240b0..50d99dd 100644
--- a/ambari-server/src/test/python/stacks/2.1/TEZ/test_service_check.py
+++ b/ambari-server/src/test/python/stacks/2.1/TEZ/test_service_check.py
@@ -44,6 +44,17 @@ class TestFalconServer(RMFTestCase):
bin_dir = '/usr/bin',
principal = UnknownConfigurationMock(),
)
+ self.assertResourceCalled('HdfsDirectory', '/tmp',
+ security_enabled = False,
+ keytab = UnknownConfigurationMock(),
+ conf_dir = '/etc/hadoop/conf',
+ hdfs_user = 'hdfs',
+ kinit_path_local = '/usr/bin/kinit',
+ mode = 0777,
+ owner = 'hdfs',
+ bin_dir = '/usr/bin',
+ action = ['create'],
+ )
self.assertResourceCalled('ExecuteHadoop', 'fs -mkdir /tmp/tezsmokeinput',
try_sleep = 5,
tries = 3,