Repository: ambari Updated Branches: refs/heads/trunk 198755193 -> af56de5ac
AMBARI-13716. Check Tez is failed(after upgrade from 1.6.1 to 2.1.2.1).(vbrodetskyi) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/af56de5a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/af56de5a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/af56de5a Branch: refs/heads/trunk Commit: af56de5ac24ed8101a3ed17fbed7c633ec320435 Parents: 1987551 Author: Vitaly Brodetskyi <[email protected]> Authored: Wed Nov 4 20:44:33 2015 +0200 Committer: Vitaly Brodetskyi <[email protected]> Committed: Wed Nov 4 20:44:33 2015 +0200 ---------------------------------------------------------------------- .../TEZ/0.4.0.2.1/package/scripts/service_check.py | 5 +++++ .../src/test/python/stacks/2.1/TEZ/test_service_check.py | 11 +++++++++++ 2 files changed, 16 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/af56de5a/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 e0fa556..efa16e7 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 @@ -50,6 +50,11 @@ class TezServiceCheckLinux(TezServiceCheck): mode = 0755 ) + params.HdfsResource("/tmp/tezsmokeoutput", + action = "delete_on_execute", + type = "directory" + ) + params.HdfsResource("/tmp/tezsmokeinput", action = "create_on_execute", type = "directory", http://git-wip-us.apache.org/repos/asf/ambari/blob/af56de5a/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 e12dd07..5b3d9f4 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 @@ -37,6 +37,17 @@ class TestTezServiceCheck(RMFTestCase): content = 'foo\nbar\nfoo\nbar\nfoo', mode = 0755, ) + self.assertResourceCalled('HdfsResource', '/tmp/tezsmokeoutput', + security_enabled = False, + hadoop_bin_dir = '/usr/bin', + keytab = UnknownConfigurationMock(), + kinit_path_local = '/usr/bin/kinit', + user = 'hdfs', + hadoop_conf_dir = '/etc/hadoop/conf', + type = 'directory', + action = ['delete_on_execute'], hdfs_site=self.getConfig()['configurations']['hdfs-site'], principal_name=UnknownConfigurationMock(), default_fs='hdfs://c6401.ambari.apache.org:8020', + ) + self.assertResourceCalled('HdfsResource', '/tmp/tezsmokeinput', security_enabled = False, hadoop_bin_dir = '/usr/bin',
