[ 
https://issues.apache.org/jira/browse/HDFS-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003222#comment-13003222
 ] 

Greg Poirier commented on HDFS-442:
-----------------------------------

This can be fixed by modifying 
src/test/org/apache/hadoop/hdfs/BenchmarkThroughput.java:198

From:

198     String localDir = conf.get("mapred.temp.dir");
199     dir = new LocalDirAllocator("mapred.temp.dir");

To:

198     String localDir = conf.get("hadoop.tmp.dir");
199     dir = new LocalDirAllocator("hadoop.tmp.dir");

It looks as though this has been removed from subversion trunk though... but it 
still exists in 0.20.2/3, which I'm running currently.

> 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 R
>            Priority: Minor
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to