Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-42

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 0.20.1, 0.20.2, 0.21.0, 0.22.0
    • Fix Version/s: 0.21.0
    • Component/s: None
    • Labels:

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: