Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B1490200B4B for ; Wed, 6 Jul 2016 14:09:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AFDA5160A36; Wed, 6 Jul 2016 12:09:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 04F10160A64 for ; Wed, 6 Jul 2016 14:09:18 +0200 (CEST) Received: (qmail 53818 invoked by uid 500); 6 Jul 2016 12:09:18 -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 53802 invoked by uid 99); 6 Jul 2016 12:09:17 -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, 06 Jul 2016 12:09:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A717ADFB87; Wed, 6 Jul 2016 12:09:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aonishuk@apache.org To: commits@ambari.apache.org Date: Wed, 06 Jul 2016 12:09:18 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] ambari git commit: AMBARI-17582. HIVE_SERVER_INTERACTIVE STOP failed with error "Python script has been killed due to timeout after waiting 900 secs" (aonishuk) archived-at: Wed, 06 Jul 2016 12:09:19 -0000 AMBARI-17582. HIVE_SERVER_INTERACTIVE STOP failed with error "Python script has been killed due to timeout after waiting 900 secs" (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/dfab464f Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/dfab464f Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/dfab464f Branch: refs/heads/branch-2.4 Commit: dfab464f0175c08fae0ae85c792af826f4702b29 Parents: 8f5f2c6 Author: Andrew Onishuk Authored: Wed Jul 6 15:09:13 2016 +0300 Committer: Andrew Onishuk Committed: Wed Jul 6 15:09:13 2016 +0300 ---------------------------------------------------------------------- .../package/scripts/hive_server_interactive.py | 17 ++++++----------- .../python/stacks/2.5/HIVE/test_hive_server_int.py | 6 +++++- 2 files changed, 11 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/dfab464f/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py index 1bdca08..875852f 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py @@ -231,7 +231,6 @@ class HiveServerInteractiveDefault(HiveServerInteractive): SLIDER_APP_NAME = "llap0" stop_cmd = ["slider", "stop", SLIDER_APP_NAME] - Logger.info(format("Command: {stop_cmd}")) code, output, error = shell.call(stop_cmd, user=params.hive_user, stderr=subprocess.PIPE, logoutput=True) if code == 0: @@ -239,18 +238,14 @@ class HiveServerInteractiveDefault(HiveServerInteractive): elif code == 69 and output is not None and "Unknown application instance" in output: Logger.info(format("Application {SLIDER_APP_NAME} was already stopped on Slider")) else: - raise Fail(format("Could not stop application {SLIDER_APP_NAME} on Slider")) + raise Fail(format("Could not stop application {SLIDER_APP_NAME} on Slider. {error}\n{output}")) # Will exit with code 4 if need to run with "--force" to delete directories and registries. - destroy_cmd = ['slider', 'destroy', SLIDER_APP_NAME, "--force"] - code, output, error = shell.call(destroy_cmd, user=params.hive_user, stderr=subprocess.PIPE) - if code == 0: - Logger.info(format("Successfully removed slider app {SLIDER_APP_NAME}.")) - else: - message = format("Could not remove slider app {SLIDER_APP_NAME}. Please retry this task.") - if error is not None: - message += " " + error - raise Fail(message) + Execute(('slider', 'destroy', SLIDER_APP_NAME, "--force"), + user=params.hive_user, + timeout=30, + ignore_failures=True, + ) """ Controls the start of LLAP. http://git-wip-us.apache.org/repos/asf/ambari/blob/dfab464f/ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py b/ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py index 1e1850e..dfa66ad 100644 --- a/ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py +++ b/ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py @@ -213,7 +213,11 @@ class TestHiveServerInteractive(RMFTestCase): self.assertResourceCalled('File', '/var/run/hive/hive-interactive.pid', action=['delete'], ) - + self.assertResourceCalled('Execute', ('slider', 'destroy', 'llap0', '--force'), + ignore_failures = True, + user = 'hive', + timeout = 30, + ) self.assertNoMoreResources()