Files
impala/testdata/bin/run-all.sh
Lenni Kuff 498c2529d4 Test CR: Change spacing in run-all.sh
Change-Id: I2362799213a7faca3892e38fb874bfbbd0c1718f
Reviewed-on: http://gerrit.ent.cloudera.com:8080/803
Tested-by: jenkins
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
2014-01-08 10:53:50 -08:00

39 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Copyright 2012 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Starts up a mini-dfs test cluster and related services
# If -format is passed, format the mini-dfs cluster.
HDFS_FORMAT_CLUSTER=""
if [ "$1" == "-format" ]; then
echo "Formatting cluster"
HDFS_FORMAT_CLUSTER="-format"
elif [[ $1 ]]; then
echo "Usage: run-all.sh [-format]"
echo "[-format] : Format the mini-dfs cluster before starting"
exit 1
fi
# Kill and clean data for a clean start.
$IMPALA_HOME/testdata/bin/kill-all.sh
# Start up DFS, then Hbase
echo "Starting all cluster services..."
$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