testsuite: Change JAVA_HOME
This commit is contained in:
parent
60c854c771
commit
82ee98bd8d
@ -66,19 +66,19 @@ create_hdfs_config() {
|
||||
</property>
|
||||
<property>
|
||||
<name>dfs.namenode.rpc-address.$2.nn1</name>
|
||||
<value>localhost:8020</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>dfs.namenode.rpc-address.$2.nn2</name>
|
||||
<value>master-1:8020</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>dfs.namenode.rpc-address.$2.nn2</name>
|
||||
<value>master-2:8020</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>dfs.namenode.http-address.$2.nn1</name>
|
||||
<value>localhost:50070</value>
|
||||
<value>master-1:50070</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>dfs.namenode.http-address.$2.nn2</name>
|
||||
<value>master-1:50070</value>
|
||||
<value>master-2:50070</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>dfs.namenode.name.dir</name>
|
||||
|
@ -11,7 +11,12 @@ HDFS_CMD_FORMAT="./hadoop/bin/hdfs --config hadoop/etc/hadoop namenode -format"
|
||||
source setup.sh
|
||||
|
||||
setup_suite() {
|
||||
export JAVA_HOME=${JAVA_HOME:-"/usr/local"}
|
||||
if [ "FreeBSD" = $(uname) ]; then
|
||||
export JAVA_HOME=${JAVA_HOME:-"/usr/local"}
|
||||
else
|
||||
export JAVA_HOME=${JAVA_HOME:-"/"}
|
||||
fi
|
||||
|
||||
export HADOOP_PREFIX="$(pwd)/hadoop"
|
||||
|
||||
# Setup HBase
|
||||
|
Loading…
Reference in New Issue
Block a user