ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abaranc...@apache.org
Subject ambari git commit: AMBARI-11883 - Unclear error message when HS2 doesn't come up
Date Sat, 13 Jun 2015 11:09:12 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 16cd1d0f2 -> ccc2af97c


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

Branch: refs/heads/branch-2.1
Commit: ccc2af97c33cfe3711b4a17109a160ad434217a2
Parents: 16cd1d0
Author: Artem Baranchuk <abaranchuk@hortonworks.con>
Authored: Sat Jun 13 14:08:16 2015 +0300
Committer: Artem Baranchuk <abaranchuk@hortonworks.con>
Committed: Sat Jun 13 14:08:54 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/ccc2af97/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:


Mime
View raw message