mirror of
https://github.com/apache/impala.git
synced 2026-01-02 03:00:32 -05:00
This should allow individual service components, such as a single nodemanager, to be shutdown for failure testing. The mini-cluster bundled with hadoop is a single process that does not expose the ability to control individual roles. Now each role can be controlled and configured independently of the others. Change-Id: Ic1d42e024226c6867e79916464d184fce886d783 Reviewed-on: http://gerrit.ent.cloudera.com:8080/1432 Tested-by: Casey Ching <casey@cloudera.com> Reviewed-by: Casey Ching <casey@cloudera.com> Reviewed-on: http://gerrit.ent.cloudera.com:8080/2297 Reviewed-by: Ishaan Joshi <ishaan@cloudera.com> Tested-by: Ishaan Joshi <ishaan@cloudera.com>
18 lines
421 B
Bash
Executable File
18 lines
421 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
|
|
|
|
set -e
|
|
|
|
# Kill and clean data for a clean start.
|
|
$IMPALA_HOME/testdata/bin/kill-mini-dfs.sh
|
|
|
|
if [ "$1" == "-format" ]; then
|
|
$IMPALA_HOME/testdata/cluster/admin delete_data
|
|
elif [[ $1 ]]; then
|
|
echo "Usage: $0 [-format]"
|
|
echo "[-format] : Format the mini-dfs cluster before starting"
|
|
exit 1
|
|
fi
|
|
|
|
$IMPALA_HOME/testdata/cluster/admin start_cluster
|