Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2358

NPE when the default filesystem's uri has no authority

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.204.0
    • Fix Version/s: 0.20.205.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Give meaningful error message instead of NPE.

      Description

      in core-site.xml if default filesystem's uri is misconfigured , NN does not come up and in NN shows NPE

      java.lang.NullPointerException
      at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:142)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:195)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:225)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:259)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:458)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1226)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1235)

      It is better to give meaningful error messege than NPE

        Activity

          People

          • Assignee:
            Daryn Sharp
            Reporter:
            Rajit Saha
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development