-
Notifications
You must be signed in to change notification settings - Fork 89
/
run-tests.sh
executable file
·29 lines (23 loc) · 1.44 KB
/
run-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
ENV_JAR=$1
if [[ -z ${ENV_JAR} ]]; then
echo "Usage: setup-tests.sh <env_jar>" >&2
exit 1
fi
source env.sh
echo "Running Unpartitioned Example"
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "select * from example_output"
${SPARK_CMD} ${SPARK_EXTRA_ARGS} --deploy-mode client ${ENV_JAR} simple-impala-unpart.conf
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "select * from example_output"
echo "Running Partitioned Example"
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "show partitions example_output_part"
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "select * from example_output_part"
${SPARK_CMD} ${SPARK_EXTRA_ARGS} --deploy-mode client ${ENV_JAR} simple-impala-part.conf
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "show partitions example_output_part"
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "select * from example_output_part"
echo "Running Kudu Example"
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "show partitions example_output_kudu"
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "select * from example_output_kudu"
${SPARK_CMD} ${SPARK_EXTRA_ARGS} --deploy-mode client ${ENV_JAR} simple-impala-kudu.conf
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "show partitions example_output_kudu"
impala-shell -i ${IMPALA_HOST} ${IMPALA_SHELL_EXTRA_ARGS} -q "select * from example_output_kudu"