hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-1561) BackupNode listens on default host
Date Sun, 09 Jan 2011 23:55:46 GMT

    [ https://issues.apache.org/jira/browse/HDFS-1561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979434#action_12979434

Konstantin Shvachko commented on HDFS-1561:

TestStorageRestore is HDFS-1496.
The rest is related to IPv6 problems. TestBackupNode and TestHDFSServerPorts reuse configuration
after it has been updated by NN or BN. But the updated config contains IPv6-style address
"0:0:0:0:0:0:0:0:50100" instead of "", which results in the following exception
in NetUtils.
java.lang.NumberFormatException: For input string: "0:0:0:0:0:0:0:50100"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:456)
	at java.lang.Integer.parseInt(Integer.java:497)
	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:155)
	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:129)
	at org.apache.hadoop.hdfs.server.namenode.BackupNode.getRpcServerAddress(BackupNode.java:81)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:350)
	at org.apache.hadoop.hdfs.server.namenode.BackupNode.initialize(BackupNode.java:129)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:578)
	at org.apache.hadoop.hdfs.server.namenode.BackupNode.<init>(BackupNode.java:72)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1532)
	at org.apache.hadoop.hdfs.TestHDFSServerPorts.startBackupNode(TestHDFSServerPorts.java:137)
	at org.apache.hadoop.hdfs.TestHDFSServerPorts.canStartBackupNode(TestHDFSServerPorts.java:236)
	at org.apache.hadoop.hdfs.TestHDFSServerPorts.testBackupNodePorts(TestHDFSServerPorts.java:382)

I can fix it by resetting config parameters, but may it is better to run Hudson with IPv4
flag as suggested in HADOOP-6056.
What people think?

> BackupNode listens on default host
> ----------------------------------
>                 Key: HDFS-1561
>                 URL: https://issues.apache.org/jira/browse/HDFS-1561
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.21.0
>            Reporter: Konstantin Shvachko
>             Fix For: 0.22.0
>         Attachments: BNAddress.patch
> Currently BackupNode uses DNS to find its default host name, and then starts RPC server
listening on that address ignoring the address specified in the configuration. Therefore,
there is no way to start BackupNode on a particular ip or host address. BackupNode should
use the address specified in the configuration instead.

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

View raw message