mirror of
https://github.com/apache/impala.git
synced 2026-01-06 15:01:43 -05:00
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>
22 lines
654 B
Bash
Executable File
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
|