Increase wait times for startup of Hive and its Metastore

On Ubuntu 14.04 on AWS EC2 m4.4x, instances, these components
frequently take more than 30 seconds to start. I have seen the HMS
take more than 90 seconds; this patch sets a more conservative timeout
default.

Change-Id: I43eb8646cca495578c8f9730faa04812957d2917
Reviewed-on: http://gerrit.cloudera.org:8080/5068
Reviewed-by: Jim Apple <jbapple@cloudera.com>
Tested-by: Internal Jenkins
This commit is contained in:
Jim Apple
2016-11-14 09:38:32 -08:00
committed by Internal Jenkins
parent b3cbc960a7
commit 4b774880c9
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ hs2_client = TCLIService.Client(protocol)
# Try to connect to the HiveServer2 service and create a session
now = time.time()
TIMEOUT_SECONDS = 30.0
TIMEOUT_SECONDS = 300.0
while time.time() - now < TIMEOUT_SECONDS:
try:
hs2_transport.open()