Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test hive with only IPv6 stack enabled in Java networking. #5662

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

<property>
<name>templeton.controller.mr.child.opts</name>
<value> -Xmx64m -Djava.net.preferIPv4Stack=true</value>
<value> -Xmx64m -Djava.net.preferIPv6Stack=true</value>
</property>

<property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

<property>
<name>templeton.controller.mr.child.opts</name>
<value> -Xmx64m -Djava.net.preferIPv4Stack=true</value>
<value> -Xmx64m -Djava.net.preferIPv6Stack=true</value>
</property>

<property>
Expand Down
2 changes: 1 addition & 1 deletion hcatalog/webhcat/svr/src/main/config/webhcat-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

<property>
<name>templeton.controller.mr.child.opts</name>
<value>-server -Xmx256m -Djava.net.preferIPv4Stack=true</value>
<value>-server -Xmx256m -Djava.net.preferIPv6Stack=true</value>
<description>Java options to be passed to templeton controller map task.
The default value of mapreduce child "-Xmx" (heap memory limit)
might be close to what is allowed for a map task.
Expand Down
2 changes: 1 addition & 1 deletion llap-server/bin/runLlapDaemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ JAVA_GC_OPTS="-XX:+PrintGCDetails -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFil
if [ "$JAVA_VERSION" -gt "1" ]; then # from java9+, -Xlog argument should be used
JAVA_GC_OPTS="-Xlog:gc*,safepoint:gc.log:time,uptime:filecount=4,filesize=100M"
fi
JAVA_OPTS_BASE="-server -Djava.net.preferIPv4Stack=true -XX:+UseNUMA -verbose:gc $JAVA_GC_OPTS"
JAVA_OPTS_BASE="-server -Djava.net.preferIPv6Stack=true -XX:+UseNUMA -verbose:gc $JAVA_GC_OPTS"

if [ ! -d "${LLAP_DAEMON_HOME}" ]; then
echo No LLAP_DAEMON_HOME set, or is not a directory.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@
<test.output.overwrite>${test.output.overwrite}</test.output.overwrite>
<test.warehouse.dir>${test.warehouse.scheme}${test.warehouse.dir}</test.warehouse.dir>
<test.local.warehouse.dir>${test.warehouse.scheme}${test.local.warehouse.dir}</test.local.warehouse.dir>
<java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
<java.net.preferIPv6Stack>true</java.net.preferIPv6Stack>
<!-- EnforceReadOnlyTables hook and QTestUtil -->
<test.src.tables/>
<java.security.krb5.conf>${test.conf.dir}/krb5.conf</java.security.krb5.conf>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void beforeClass(HiveTestEnvContext ctx) throws Exception {
System.setProperty("test.tmp.dir.uri", "file://" + tmpFolderPath);
System.setProperty("test.dfs.mkdir", "-mkdir -p");
System.setProperty("test.warehouse.dir", tmpFolderPath + "/warehouse"); // this is changed to be *under* tmp dir
System.setProperty("java.net.preferIPv4Stack", "true"); // not sure if this will have any effect..
System.setProperty("java.net.preferIPv6Stack", "true"); // not sure if this will have any effect..
System.setProperty("test.src.tables", "src");
System.setProperty("hive.jar.directory", tmpFolderPath);
}
Expand Down
2 changes: 1 addition & 1 deletion testutils/hadoop
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi
HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.policy.file=$HADOOP_POLICYFILE"

# Disable ipv6 as it can cause issues
HADOOP_OPTS="$HADOOP_OPTS -Djava.net.preferIPv4Stack=true"
HADOOP_OPTS="$HADOOP_OPTS -Djava.net.preferIPv6Stack=true"

COMMAND=$1
# the core commands
Expand Down
Loading