properly invalidating impala metadata
This commit is contained in:
parent
0ba0a6b9da
commit
03d36fadea
|
@ -10,6 +10,7 @@ export SOURCE=$1
|
||||||
export SHADOW=$2
|
export SHADOW=$2
|
||||||
|
|
||||||
echo "Updating shadow database"
|
echo "Updating shadow database"
|
||||||
|
impala-shell -q "invalidate metadata"
|
||||||
impala-shell -d ${SOURCE} -q "invalidate metadata"
|
impala-shell -d ${SOURCE} -q "invalidate metadata"
|
||||||
impala-shell -d ${SOURCE} -q "show tables" --delimited | sed "s/^\(.*\)/compute stats ${SOURCE}.\1;/" | impala-shell -c -f -
|
impala-shell -d ${SOURCE} -q "show tables" --delimited | sed "s/^\(.*\)/compute stats ${SOURCE}.\1;/" | impala-shell -c -f -
|
||||||
impala-shell -q "create database if not exists ${SHADOW}"
|
impala-shell -q "create database if not exists ${SHADOW}"
|
||||||
|
|
Loading…
Reference in New Issue