mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
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>
16 lines
536 B
Bash
Executable File
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
|