You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2026/08/27 21:52:00 UTC
[jira] [Updated] (HADOOP-19935) Windows: make preferIPv4Stack overridable, matching hadoop-functions.sh
[ https://issues.apache.org/jira/browse/HADOOP-19935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang updated HADOOP-19935:
-------------------------------------
Fix Version/s: 3.6.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.6.0
>
>
> 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org