mirror of
https://github.com/apache/impala.git
synced 2026-01-07 09:02:19 -05:00
This change includes a number of improvements for the test data loading framework: * Named sections for schema template definitions * Removal of uneeded sections from schema template definitions (ex. ANALYZE TABLE) * More granular data loading via table name filters * Improved robustness in detecting failed data loads * Table level constraints for specific file formats * Re-written compute stats script
20 lines
532 B
Bash
Executable File
20 lines
532 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
|
|
|
|
# If first argument is set, reformat the cluster, else try to load
|
|
# what was already there
|
|
HDFS_FORMAT_CLUSTER=""
|
|
if [ "x$1" != "x" ]; then
|
|
echo "Formatting cluster"
|
|
HDFS_FORMAT_CLUSTER="-format"
|
|
fi
|
|
|
|
# Kill and clean data for a clean start.
|
|
$IMPALA_HOME/testdata/bin/kill-all.sh
|
|
|
|
# Start up DFS, then Hbase
|
|
$IMPALA_HOME/testdata/bin/run-mini-dfs.sh ${HDFS_FORMAT_CLUSTER}
|
|
$IMPALA_HOME/testdata/bin/run-hbase.sh
|
|
|
|
$IMPALA_HOME/testdata/bin/run-hive-server.sh
|