testsuite: Change JAVA_HOME

This commit is contained in:
Björn Busse 2021-03-07 03:31:29 +01:00
parent 60c854c771
commit 82ee98bd8d
2 changed files with 12 additions and 7 deletions

View File

@ -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>

View File

@ -11,7 +11,12 @@ HDFS_CMD_FORMAT="./hadoop/bin/hdfs --config hadoop/etc/hadoop namenode -format"
source setup.sh
setup_suite() {
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