You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2015/06/13 13:06:54 UTC
ambari git commit: AMBARI-11883 - Unclear error message when HS2
doesn't come up
Repository: ambari
Updated Branches:
refs/heads/trunk 6e6042db2 -> 4c8b84d0f
AMBARI-11883 - Unclear error message when HS2 doesn't come up
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4c8b84d0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4c8b84d0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4c8b84d0
Branch: refs/heads/trunk
Commit: 4c8b84d0fc546e74198681ebbe745b497440b862
Parents: 6e6042d
Author: Artem Baranchuk <ab...@hortonworks.con>
Authored: Fri Jun 12 16:48:42 2015 +0300
Committer: Artem Baranchuk <ab...@hortonworks.con>
Committed: Sat Jun 13 14:06:24 2015 +0300
----------------------------------------------------------------------
.../HIVE/0.12.0.2.0/package/scripts/service_check.py | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/4c8b84d0/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
index 3fdf028..0c254be 100644
--- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
+++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
@@ -52,6 +52,10 @@ class HiveServiceCheckDefault(HiveServiceCheck):
env.set_params(params)
address_list = params.hive_server_hosts
+
+ if not address_list:
+ raise Fail("Can not find any Hive Server host. Please check configuration.")
+
port = int(format("{hive_server_port}"))
print "Test connectivity to hive server"
if params.security_enabled: