ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-13716. Check Tez is failed(after upgrade from 1.6.1 to 2.1.2.1).(vbrodetskyi)
Date Wed, 04 Nov 2015 18:43:02 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 055fe0fcc -> f10ece280


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

Branch: refs/heads/branch-2.1
Commit: f10ece280f442b4f63e22635466f9c9dbee8e421
Parents: 055fe0f
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Wed Nov 4 20:42:55 2015 +0200
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Wed Nov 4 20:42:55 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/f10ece28/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/f10ece28/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 c8e4cdc..cd02fea 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',


Mime
View raw message