mirror of
https://github.com/apache/impala.git
synced 2026-01-01 00:00:20 -05:00
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>
18 lines
612 B
Bash
Executable File
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
|