-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-19695. Add dual-stack/IPv6 Support to HttpServer2 #7979
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
base: trunk
Are you sure you want to change the base?
Conversation
💔 -1 overall
This message was automatically generated. |
05144e7
to
4e384cf
Compare
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ferdelyi for the patch. I had a small question.
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
Outdated
Show resolved
Hide resolved
4e384cf
to
792d7c0
Compare
💔 -1 overall
This message was automatically generated. |
792d7c0
to
7d394e5
Compare
💔 -1 overall
This message was automatically generated. |
7d394e5
to
48a1804
Compare
Earlier shadedclient failures: [ERROR] ITUseMiniCluster.clusterUp:78 » IO Problem starting http server |
💔 -1 overall
This message was automatically generated. |
48a1804
to
2b42d96
Compare
💔 -1 overall
This message was automatically generated. |
2b42d96
to
8aa88fc
Compare
shadedclient was failing on this: [INFO] Running org.apache.hadoop.example.ITUseMiniCluster |
💔 -1 overall
This message was automatically generated. |
In the patch-shadedclient.txt the exception now is: I've increased HTTP_MAX_THREADS by one, and the required number of threads also increased by one. Just out of curiosity will puch e.g. 10 and see if it keeps increasing. |
8aa88fc
to
e14a395
Compare
🎊 +1 overall
This message was automatically generated. |
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 java.net.preferIPv4Stack is false, both IPv4 and IPv6 addresses may be returned, and any IPv6 addresses will also be added as connectors. To disable IPv4, you need to configure the OS at the system level.
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 java.net.preferIPv4Stack is false, both IPv4 and IPv6 addresses may be returned, and any IPv6 addresses will also be added as connectors. To disable IPv4, you need to configure the OS at the system level.
Description of PR
How was this patch tested?
Unit test, manual testing in a cluster.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?