ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject ambari git commit: AMBARI-21916. Shut down LLAP when HSI startup fails.
Date Fri, 08 Sep 2017 18:09:38 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 b4b5773e8 -> 368759e41


AMBARI-21916. Shut down LLAP when HSI startup fails.


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/368759e4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/368759e4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/368759e4

Branch: refs/heads/branch-2.6
Commit: 368759e4133be17ffb109b42e4f07e7d38b2e764
Parents: b4b5773
Author: Swapan Shridhar <sshridhar@hortonworks.com>
Authored: Fri Sep 8 10:25:54 2017 -0700
Committer: Swapan Shridhar <sshridhar@hortonworks.com>
Committed: Fri Sep 8 11:09:21 2017 -0700

----------------------------------------------------------------------
 .../HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/368759e4/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 e7b604e..57cbcd0 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
@@ -114,6 +114,8 @@ class HiveServerInteractiveDefault(HiveServerInteractive):
       # Start LLAP before Hive Server Interactive start.
       status = self._llap_start(env)
       if not status:
+        # if we couldnt get LLAP in RUNNING or RUNNING_ALL state, stop LLAP process before
bailing out.
+        self._llap_stop(env)
         raise Fail("Skipping START of Hive Server Interactive since LLAP app couldn't be
STARTED.")
 
       # TODO : test the workability of Ranger and Hive2 during upgrade


Mime
View raw message