Files
impala/testdata/bin/kill-hive-server.sh
Lenni Kuff b07a3ccfd6 Use an external Hive Metastore Service for local test runs
Using an external Hive Metastore Service for local test runs has a number of benefits.
Some of the benefits are that it helps separate the metastore logs from the impala
logs, and that it is more representative of what is on real cluster environments.
It also may help with some of the concurrency issues that we have been seeing when
running directly against the backend database since we no longer spin up an in-process
metastore server for each client connection.

The metastore is started by running "run-hive-server.sh" which is invoked as part of
"run-all.sh".

Change-Id: If60fa97aa38e4ad5cf578b9b409eeea1e0e29375
Reviewed-on: http://gerrit.ent.cloudera.com:8080/628
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: jenkins
2014-01-08 10:53:15 -08:00

7 lines
202 B
Bash
Executable File

#!/bin/sh
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
jps -m | grep HiveServer | awk '{print $1}' | xargs kill -9;
jps -m | grep HiveMetaStore | awk '{print $1}' | xargs kill -9;
sleep 1;