Siyao Meng created HADOOP-19935:
-----------------------------------
Summary: Windows: make preferIPv4Stack overridable, matching
hadoop-functions.sh
Key: HADOOP-19935
URL: https://issues.apache.org/jira/browse/HADOOP-19935
Project: Hadoop Common
Issue Type: Sub-task
Components: scripts
Reporter: Siyao Meng
Assignee: Siyao Meng
Prompted by HADOOP-16943, I noticed that Windows hadoop-config.cmd still
disables IPv6.
On Unix the IPv4 pin has been overridable since HADOOP-9902 (2014):
hadoop-functions.sh uses
{{{}$\{HADOOP_OPTS:-"-Djava.net.preferIPv4Stack=true"{}}}},
so setting {{HADOOP_OPTS}} selects dual-stack or IPv6. hadoop-config.cmd never
matched it. It appended the pin unconditionally, so IPv6 could not be
enabled on Windows at all.
Proposal: Apply the pin only when HADOOP_OPTS is unset, mirroring the Unix
default.
IPv4 stays the default when HADOOP_OPTS is unset; operators who set it can
now choose dual-stack or IPv6.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]