Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A332918B7F for ; Wed, 4 Nov 2015 18:43:02 +0000 (UTC) Received: (qmail 86438 invoked by uid 500); 4 Nov 2015 18:43:02 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 86407 invoked by uid 500); 4 Nov 2015 18:43:02 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 86398 invoked by uid 99); 4 Nov 2015 18:43:02 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2015 18:43:02 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6CA68DFD7B; Wed, 4 Nov 2015 18:43:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vbrodetskyi@apache.org To: commits@ambari.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-13716. Check Tez is failed(after upgrade from 1.6.1 to 2.1.2.1).(vbrodetskyi) Date: Wed, 4 Nov 2015 18:43:02 +0000 (UTC) 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 Authored: Wed Nov 4 20:42:55 2015 +0200 Committer: Vitaly Brodetskyi 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',