You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2015/01/20 15:36:17 UTC
ambari git commit: AMBARI-9212. HiveServer2 HA: restart after
enabling ha fails.(vbrodetskyi)
Repository: ambari
Updated Branches:
refs/heads/trunk d9836e314 -> d72693d66
AMBARI-9212. HiveServer2 HA: restart after enabling ha fails.(vbrodetskyi)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d72693d6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d72693d6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d72693d6
Branch: refs/heads/trunk
Commit: d72693d66cbad9cfcbfbb1911d0d5c5ae1d85f8b
Parents: d9836e3
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Thu Jan 8 12:21:52 2015 +0200
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Thu Jan 8 12:21:52 2015 +0200
----------------------------------------------------------------------
.../HIVE/0.12.0.2.0/package/scripts/hive_service.py | 2 +-
.../src/test/python/stacks/2.0.6/HIVE/test_hive_server.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/d72693d6/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
index 3b32977..a89d299 100644
--- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
+++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
@@ -67,7 +67,7 @@ def hive_service(name, action='start', rolling_restart=False):
# AMBARI-5800 - wait for the server to come up instead of just the PID existance
if name == 'hiveserver2':
SOCKET_WAIT_SECONDS = 120
- address=params.hive_server_host
+ address=params.hostname
port=int(params.hive_server_port)
start_time = time.time()
http://git-wip-us.apache.org/repos/asf/ambari/blob/d72693d6/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
index 7ea241f..527c4c7 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
@@ -140,7 +140,7 @@ class TestHiveServer(RMFTestCase):
self.assertResourceCalled('Execute', '/usr/bin/kinit -kt /etc/security/keytabs/smokeuser.headless.keytab ambari-qa; ',
user = 'ambari-qa',
)
- self.assertResourceCalled('Execute', "! beeline -u 'jdbc:hive2://c6402.ambari.apache.org:10000/;principal=hive/_HOST@EXAMPLE.COM' -e '' 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'",
+ self.assertResourceCalled('Execute', "! beeline -u 'jdbc:hive2://c6401.ambari.apache.org:10000/;principal=hive/_HOST@EXAMPLE.COM' -e '' 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'",
path = ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'],
user = 'ambari-qa',
timeout = 30,