Files
impala/testdata/bin/run-hive-server.sh
Lenni Kuff 72e211ca4a Use Hive Metastore Service instead of HiveServer 1 in test infrastructure
Change-Id: I4e2ba02b2101bae95d196ab13f9453e1b3a9d7be
Reviewed-on: http://gerrit.ent.cloudera.com:8080/689
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: jenkins
2014-01-08 10:53:26 -08:00

20 lines
557 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 &
sleep 10