[
https://issues.apache.org/jira/browse/HADOOP-19695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ferenc Erdelyi updated HADOOP-19695:
------------------------------------
Description:
To support clients connecting to JHS via IPv6, we need to equip the YARN WebApp
class to bind to an IPv6 address. WebApp uses the HttpServer2, and adding the
IPv6 connector to this class makes the solution more elegant.
To enable dual-stack or IPv6 support, use InetAddress.getAllByName(hostname) to
resolve the IP addresses of a host.
When the system property java.net.preferIPv4Stack is set to true, only IPv4
addresses are returned, and any IPv6 addresses are ignored, so no extra check
is needed to exclude IPv6.
When both the java.net.preferIPv4Stack and the java.net.preferIPv6Addresses are
false, first the IPv4 and then the IPv6 addresses may be returned, and will
also be added as connectors in this order.
When java.net.preferIPv4Stack is false and the java.net.preferIPv6Addresses is
true, first the IPv6 and only then the IPv4 addresses may be returned, and
added as connectors in this order.
To disable IPv4, you need to configure the OS at the system level.
was:
To support clients connecting to JHS via IPv6, we need to equip the YARN WebApp
class to bind to an IPv6 address. WebApp uses the HttpServer2, and adding the
IPv6 connector to this class makes the solution more elegant.
To enable dual-stack or IPv6 support, use InetAddress.getAllByName(hostname) to
resolve the IP addresses of a host.
When the system property java.net.preferIPv4Stack is set to true, only IPv4
addresses are returned, and any IPv6 addresses are ignored, so no extra check
is needed to exclude IPv6.
When both the java.net.preferIPv4Stack and the java.net.preferIPv6Addresses are
false, both IPv4 and IPv6 (in this order) addresses may be returned, and any
IPv6 addresses will also be added as connectors.
When java.net.preferIPv4Stack is false, and the java.net.preferIPv6Addresses is
true, first the IPv6 and only then the IPv4 addresses may be returned, and
added as connectors.
To disable IPv4, you need to configure the OS at the system level.
> Add dual-stack/IPv6 Support to HttpServer2
> ------------------------------------------
>
> Key: HADOOP-19695
> URL: https://issues.apache.org/jira/browse/HADOOP-19695
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: hadoop-common
> Reporter: Ferenc Erdelyi
> Assignee: Ferenc Erdelyi
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.5.0
>
>
> To support clients connecting to JHS via IPv6, we need to equip the YARN
> WebApp class to bind to an IPv6 address. WebApp uses the HttpServer2, and
> adding the IPv6 connector to this class makes the solution more elegant.
> To enable dual-stack or IPv6 support, use InetAddress.getAllByName(hostname)
> to resolve the IP addresses of a host.
> When the system property java.net.preferIPv4Stack is set to true, only IPv4
> addresses are returned, and any IPv6 addresses are ignored, so no extra check
> is needed to exclude IPv6.
> When both the java.net.preferIPv4Stack and the java.net.preferIPv6Addresses
> are false, first the IPv4 and then the IPv6 addresses may be returned, and
> will also be added as connectors in this order.
> When java.net.preferIPv4Stack is false and the java.net.preferIPv6Addresses
> is true, first the IPv6 and only then the IPv4 addresses may be returned, and
> added as connectors in this order.
> To disable IPv4, you need to configure the OS at the system level.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]