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 Bug
    • Status: Resolved
    • Priority: Minor 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)

        Issue Links

          Activity

          Steve Loughran made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 0.21.0 [ 12314046 ]
          Resolution Duplicate [ 3 ]
          Steve Loughran made changes -
          Link This issue is duplicated by HADOOP-5687 [ HADOOP-5687 ]
          Allen Wittenauer made changes -
          Labels newbie
          Gavin made changes -
          Assignee Steve Loughran [ steve_l ] Steve Loughran [ stevel@apache.org ]
          Gavin made changes -
          Reporter Steve Loughran [ steve_l ] Steve Loughran [ stevel@apache.org ]
          Steve Loughran made changes -
          Affects Version/s 0.20.1 [ 12314048 ]
          Affects Version/s 0.20.2 [ 12314204 ]
          Affects Version/s 0.21.0 [ 12314046 ]
          Affects Version/s 0.22.0 [ 12314241 ]
          Steve Loughran made changes -
          Assignee Steve Loughran [ steve_l ]
          Steve Loughran made changes -
          Link This issue is duplicated by HADOOP-4019 [ HADOOP-4019 ]
          Owen O'Malley made changes -
          Project Hadoop Common [ 12310240 ] HDFS [ 12310942 ]
          Key HADOOP-3432 HDFS-42
          Affects Version/s 0.18.0 [ 12312972 ]
          Component/s dfs [ 12310710 ]
          Steve Loughran made changes -
          Link This issue is related to HADOOP-197 [ HADOOP-197 ]
          Steve Loughran made changes -
          Field Original Value New Value
          Link This issue is related to HADOOP-197 [ HADOOP-197 ]
          Steve Loughran created issue -

            People

            • Assignee:
              Steve Loughran
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development