[ https://issues.apache.org/jira/browse/HDFS-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190242#comment-13190242 ]
Hitesh Shah commented on HDFS-442: ---------------------------------- +1. Patch looks good - hadoop.tmp.dir is always guaranteed to be set via core-default. Tested with/without patch and fixes the issue. > dfsthroughput in test.jar throws NPE > ------------------------------------ > > Key: HDFS-442 > URL: https://issues.apache.org/jira/browse/HDFS-442 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Affects Versions: 0.20.1 > Reporter: Ramya Sunil > Assignee: Harsh J > Priority: Minor > Attachments: HDFS-442.patch > > > On running hadoop jar hadoop-test.jar dfsthroughput OR hadoop > org.apache.hadoop.hdfs.BenchmarkThroughput, we get NullPointerException. > Below is the stacktrace: > {noformat} > Exception in thread "main" java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:394) > at java.util.Properties.setProperty(Properties.java:143) > at java.lang.System.setProperty(System.java:731) > at > org.apache.hadoop.hdfs.BenchmarkThroughput.run(BenchmarkThroughput.java:198) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at > org.apache.hadoop.hdfs.BenchmarkThroughput.main(BenchmarkThroughput.java:229) > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira