Files
impala/testdata/bin/run-hive-server.sh
ishaan 8a43426879 Sleep after starting the hiveserver2 service to guards against it not starting on time.
Change-Id: I9a0de1cc63089cba2f9b59942ee45abc44b8662e
Reviewed-on: http://gerrit.ent.cloudera.com:8080/643
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: Ishaan Joshi <ishaan@cloudera.com>
2014-01-08 10:53:17 -08:00

22 lines
654 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
HIVE_SERVER_PORT=10000
export HIVE_SERVER2_THRIFT_PORT=11050
HIVE_METASTORE_PORT=9083
set -u
# TODO: We should have a retry loop for every service we start.
# Kill for a clean start.
$IMPALA_HOME/testdata/bin/kill-hive-server.sh
# Starts a Hive Metastore Server on the specified port.
hive --service metastore -p $HIVE_METASTORE_PORT &
# Starts a HiveServer2 instance on the port specified by the HIVE_SERVER2_THRIFT_PORT
# environment variable.
hive --service hiveserver2 &
# Starts hive-server (1) on the specified port.
hive --service hiveserver -p $HIVE_SERVER_PORT &
sleep 20