Created
July 26, 2017 03:12
-
-
Save cpcloud/6e4cc6439ca3be947577f422058fd281 to your computer and use it in GitHub Desktop.
Run Impala Docker Image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
export IBIS_TEST_NN_HOST=impalalive | |
export IBIS_TEST_IMPALA_HOST=$IBIS_TEST_NN_HOST | |
export IBIS_TEST_IMPALA_PORT=21050 | |
export IBIS_TEST_WEBHDFS_PORT=50070 | |
export IBIS_TEST_WEBHDFS_USER=ubuntu | |
docker stop $IBIS_TEST_NN_HOST | |
docker rm $IBIS_TEST_NN_HOST | |
docker run -d -it --name $IBIS_TEST_NN_HOST \ | |
--hostname $IBIS_TEST_NN_HOST \ | |
-p $IBIS_TEST_WEBHDFS_PORT -p $IBIS_TEST_IMPALA_PORT \ | |
cpcloud86/impala:metastore | |
while ! docker exec $IBIS_TEST_NN_HOST impala-shell -q 'SELECT VERSION()'; do | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment