Files
impala/testdata/bin/run-mini-dfs.sh
Nong Li e5ed8e4105 Move minicluster_xml_conf to HADOOP_CONF_DIR.
The current location gets deleted if you rebuild, making you have to restart mini dfs.

Change-Id: If71b144534255fa8df2bfa187c0814ffdf28463e
Reviewed-on: http://gerrit.ent.cloudera.com:8080/550
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: Nong Li <nong@cloudera.com>
2014-01-08 10:53:03 -08:00

16 lines
536 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
set -u
# Kill and clean data for a clean start.
$IMPALA_HOME/testdata/bin/kill-mini-dfs.sh
# Starts up a three-node single-process cluster; the NN listens on port 20500.
pushd ${HADOOP_HOME}
CLASSPATH=`hadoop classpath`
java -Dtest.build.data="$MINI_DFS_BASE_DATA_DIR" -Djava.library.path="$HADOOP_HOME/lib/native" org.apache.hadoop.test.MiniDFSClusterManager \
-datanodes 3 -nnport=20500 -writeConfig=${HADOOP_CONF_DIR}/minicluster-conf.xml $@ &
popd
sleep 10