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 <[email protected]> Tested-by: Internal Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/4b774880 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/4b774880 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/4b774880 Branch: refs/heads/hadoop-next Commit: 4b774880c9bd46fccf8855f383ce579e585c7115 Parents: b3cbc96 Author: Jim Apple <[email protected]> Authored: Mon Nov 14 09:38:32 2016 -0800 Committer: Internal Jenkins <[email protected]> Committed: Tue Nov 15 20:35:01 2016 +0000 ---------------------------------------------------------------------- testdata/bin/wait-for-hiveserver2.py | 2 +- testdata/bin/wait-for-metastore.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/4b774880/testdata/bin/wait-for-hiveserver2.py ---------------------------------------------------------------------- diff --git a/testdata/bin/wait-for-hiveserver2.py b/testdata/bin/wait-for-hiveserver2.py index 233b541..bf57ea8 100755 --- a/testdata/bin/wait-for-hiveserver2.py +++ b/testdata/bin/wait-for-hiveserver2.py @@ -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() http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/4b774880/testdata/bin/wait-for-metastore.py ---------------------------------------------------------------------- diff --git a/testdata/bin/wait-for-metastore.py b/testdata/bin/wait-for-metastore.py index a528142..2dc6550 100755 --- a/testdata/bin/wait-for-metastore.py +++ b/testdata/bin/wait-for-metastore.py @@ -50,7 +50,7 @@ hive_client = ThriftHiveMetastore.Client(protocol) # Try to connect to the Hive metastore now = time.time() -TIMEOUT_SECONDS = 30.0 +TIMEOUT_SECONDS = 300.0 while time.time() - now < TIMEOUT_SECONDS: try: hive_transport.open()
