Files
impala/testdata/bin/run-hbase.sh
ishaan 9e043e862c Fix run-hbase.sh to correctly pick up the classpath.
We run wat-for-hbase-master.py after starting hbase to account for a race between
the master and region server. This script has not been working for some time. It caused
no ill effects sinc the said race was absent. However, the race has manifested itself
again, so the script needs to be fixed. Setting the correct classpath does so.

Change-Id: I783a7473cfd24a9cb66711f5428f7052ceb96282
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1756
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: Ishaan Joshi <ishaan@cloudera.com>
2014-03-05 01:04:56 -08:00

18 lines
612 B
Bash
Executable File

# Kill and clean data for a clean start.
$IMPALA_HOME/testdata/bin/kill-hbase.sh 2>&1
# To work around HBase bug (HBASE-4467), unset $HADOOP_HOME before calling hbase
HADOOP_HOME=
# Start HBase and 3 regionserver
$HBASE_HOME/bin/start-hbase.sh
# TODO: Remove once the race between master and RS has been
# resolved. Note this script requires having
# org.apache.zookeeper.ZooKeeperMain on the classpath, so make sure
# that the classpath has been set properly.
. ${IMPALA_HOME}/bin/set-classpath.sh
python $IMPALA_HOME/testdata/bin/wait-for-hbase-master.py
$HBASE_HOME/bin/local-regionservers.sh start 1 2 3