forked from D-Net/dnet-hadoop
fixed an impala error
This commit is contained in:
parent
f358cabb2b
commit
a1e1cf32d7
|
@ -13,4 +13,4 @@ export SHADOW=$3
|
||||||
echo "Creating observatory database"
|
echo "Creating observatory database"
|
||||||
impala-shell -q "drop database if exists ${TARGET} cascade"
|
impala-shell -q "drop database if exists ${TARGET} cascade"
|
||||||
impala-shell -q "create database if not exists ${TARGET}"
|
impala-shell -q "create database if not exists ${TARGET}"
|
||||||
impala-shell -d ${SOURCE} -q "show tables" --delimited | sed "s/\(.*\)/create view ${TARGET}.\1 as select * from ${SOURCE}.\1;/" | impala-shell -f -
|
impala-shell -d ${SOURCE} -q "show tables" --delimited | grep -iv roar | sed "s/\(.*\)/create view ${TARGET}.\1 as select * from ${SOURCE}.\1;/" | impala-shell -f -
|
||||||
|
|
Loading…
Reference in New Issue