Files
impala/testdata/bin/run-hive.sh
marcel 77617256f4 - added data generator under testdata/src/main/java/com/cloudera/impala/datagenerator
- added support for mvn based builds and also a driver script 'recreate_store.sh' to regenerate the data.
- switched test setup to create test tables via a hive cli script rather than programmatically
- added script to load data into default.AllTypes table (24-way partitioned)
2011-06-27 16:19:25 -07:00

24 lines
524 B
Bash
Executable File

#!/bin/sh
set -x
set -e
CONF_DIR=$1
SCRIPT=$2
WH=$3
MS_URL=$4
MS_DRIVER=$5
MS_USERNAME=$6
MS_PASSWORD=$7
HIVE="hive "
HIVE="$HIVE -hiveconf \"test.hive.warehouse.dir=$WH\""
HIVE="$HIVE -hiveconf \"test.hive.metastore.jdbc.url=$MS_URL\""
HIVE="$HIVE -hiveconf \"test.hive.metastore.jdbc.driver=$MS_DRIVER\""
HIVE="$HIVE -hiveconf \"test.hive.metastore.jdbc.username=$MS_USERNAME\""
HIVE="$HIVE -hiveconf \"test.hive.metastore.jdbc.password=$MS_PASSWORD\""
HIVE_CONF_DIR=$CONF_DIR
export HIVE_CONF_DIR
$HIVE -f $SCRIPT -v