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] [Updated] (HDFS-8078) HDFS client gets IllegalArgumentException trying to to connect to IPv6 DataNode
Date Tue, 07 Apr 2015 22:08:12 GMT

     [ https://issues.apache.org/jira/browse/HDFS-8078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nate Edel updated HDFS-8078:
----------------------------
    Labels: ipv6  (was: )

> 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
>              Labels: ipv6
>
> 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