Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-4573

NNThroughputBenchmark throws NPE if fs.default.name is not set

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: benchmarks
    • Labels:
      None

      Description

      Don't specify fs.default.name in hadoop-site.xml, then run NNThroughputBenchmark:

      $ ./bin/hadoop org.apache.hadoop.hdfs.NNThroughputBenchmark -op create -threads 10 -files 10000 -filesPerDir 10 -close
      08/11/01 00:46:57 ERROR hdfs.NNThroughputBenchmark: java.lang.NullPointerException
              at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:134)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:130)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:150)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:208)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:194)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:859)
              at org.apache.hadoop.hdfs.NNThroughputBenchmark.<init>(NNThroughputBenchmark.java:107)
              at org.apache.hadoop.hdfs.NNThroughputBenchmark.runBenchmark(NNThroughputBenchmark.java:1122)
              at org.apache.hadoop.hdfs.NNThroughputBenchmark.main(NNThroughputBenchmark.java:1174)
      
      Exception in thread "main" java.lang.NullPointerException
              at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:134)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:130)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:150)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:208)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:194)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:859)
              at org.apache.hadoop.hdfs.NNThroughputBenchmark.<init>(NNThroughputBenchmark.java:107)
              at org.apache.hadoop.hdfs.NNThroughputBenchmark.runBenchmark(NNThroughputBenchmark.java:1122)
              at org.apache.hadoop.hdfs.NNThroughputBenchmark.main(NNThroughputBenchmark.java:1174)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                philip Philip Zeyliger
                Reporter:
                szetszwo Tsz Wo Nicholas Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: