hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6056) Use java.net.preferIPv4Stack to force IPv4
Date Wed, 27 Jan 2010 03:34:35 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805339#action_12805339
] 

Todd Lipcon commented on HADOOP-6056:
-------------------------------------

The "exit 1" seems pretty aggressive. Is there no case that one could use Hadoop and it would
work with this sysctl set? On my system, I can confirm that clients don't work with it set,
but I want to be awfully sure before adding an exit 1 in the wrapper scripts.

[here's a transcript that shows that it really does break clients]
{noformat}
todd@todd-laptop:~$ sudo sysctl net.ipv6.bindv6only=1
net.ipv6.bindv6only = 1
todd@todd-laptop:~$ hadoop fs -ls /
10/01/26 19:33:06 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already
tried 0 time(s).
^Ctodd@todd-laptop:~$ sudo sysctl net.ipv6.bindv6only=0
net.ipv6.bindv6only = 0
todd@todd-laptop:~$ hadoop fs -ls /
Found 2 items
drwxr-xr-x   - todd supergroup          0 2010-01-26 15:06 /hadoop
drwxr-xr-x   - todd supergroup          0 2010-01-26 16:23 /test
{noformat}

> Use java.net.preferIPv4Stack to force IPv4
> ------------------------------------------
>
>                 Key: HADOOP-6056
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6056
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.21.0, 0.22.0
>            Reporter: Steve Loughran
>            Assignee: Todd Lipcon
>             Fix For: 0.21.0, 0.22.0
>
>         Attachments: HADOOP-6056.patch, hadoop-6056.txt
>
>
> This was mentioned on HADOOP-3427, there is a property,  java.net.preferIPv4Stack, which
you set to true for the java net process to switch to IPv4 everywhere. 
> As Hadoop doesn't work on IPv6, this should be set to true in the startup scripts. Hopefully
this will ensure that Jetty will also pick it up.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message