hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-42) NetUtils.createSocketAddr NPEs if dfs.datanode.ipc.address is not set for a data node
Date Mon, 26 Jan 2015 22:48:35 GMT

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

Steve Loughran resolved HDFS-42.
--------------------------------
       Resolution: Duplicate
    Fix Version/s: 0.21.0

> NetUtils.createSocketAddr NPEs if dfs.datanode.ipc.address is not set for a data node
> -------------------------------------------------------------------------------------
>
>                 Key: HDFS-42
>                 URL: https://issues.apache.org/jira/browse/HDFS-42
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.1, 0.20.2, 0.21.0, 0.22.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>              Labels: newbie
>             Fix For: 0.21.0
>
>
> DataNode.startDatanode assumes that a configuration always returns a non-null dfs.datanode.ipc.address
value, as the result is passed straight down to NetUtils.createSocketAddr
> InetSocketAddress ipcAddr = NetUtils.createSocketAddr(
>         conf.get("dfs.datanode.ipc.address"));
> which triggers an NPE
> Caused by: java.lang.NullPointerException
> at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:130)
> at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:119)
> at org.apache.hadoop.dfs.DataNode.startDataNode(DataNode.java:353)
> at org.apache.hadoop.dfs.DataNode.(DataNode.java:185)



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

Mime
View raw message