hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nate Edel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-8078) HDFS client gets IllegalArgumentException trying to to connect to IPv6 DataNode
Date Tue, 07 Apr 2015 22:05:12 GMT
Nate Edel created HDFS-8078:
-------------------------------

             Summary: HDFS client gets IllegalArgumentException trying to to connect to IPv6
DataNode
                 Key: HDFS-8078
                 URL: https://issues.apache.org/jira/browse/HDFS-8078
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs-client
    Affects Versions: 2.6.0
            Reporter: Nate Edel
            Assignee: Nate Edel


Exception below:

15/03/23 18:43:18 WARN hdfs.DFSClient: DataStreamer Exception
java.lang.IllegalArgumentException: Does not contain a valid host:port authority: 2401:db00:1010:70ba:face:0:8:0:50010
	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:212)
	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:153)
	at org.apache.hadoop.hdfs.DFSOutputStream.createSocketForPipeline(DFSOutputStream.java:1607)
	at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1408)
	at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1361)
	at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:588)

Appears to actually stem from code in DataNodeID which assumes it's safe to append together
(ipaddr + ":" + port) -- which is OK for IPv4 and not OK for IPv6.  NetUtils.createSocketAddr(
) assembles a Java URI object, which requires the format proto://[2401:db00:1010:70ba:face:0:8:0]:50010

Patch will be posted shortly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message