NetUtils.createSocketAddr NPEs if dfs.datanode.ipc.address is not set for a 
data node
-------------------------------------------------------------------------------------

                 Key: HADOOP-3432
                 URL: https://issues.apache.org/jira/browse/HADOOP-3432
             Project: Hadoop Core
          Issue Type: Bug
          Components: dfs
    Affects Versions: 0.18.0
            Reporter: Steve Loughran
            Priority: Minor


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to