merge HDFS-442. (harsh)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1235139 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
517766b98b
commit
5f28329fe0
|
@ -182,6 +182,8 @@ Release 0.23.1 - UNRELEASED
|
||||||
HDFS-2822. processMisReplicatedBlock incorrectly identifies
|
HDFS-2822. processMisReplicatedBlock incorrectly identifies
|
||||||
under-construction blocks as under-replicated. (todd)
|
under-construction blocks as under-replicated. (todd)
|
||||||
|
|
||||||
|
HDFS-442. dfsthroughput in test jar throws NPE (harsh)
|
||||||
|
|
||||||
Release 0.23.0 - 2011-11-01
|
Release 0.23.0 - 2011-11-01
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -193,6 +193,10 @@ public class BenchmarkThroughput extends Configured implements Tool {
|
||||||
BUFFER_SIZE = conf.getInt("dfsthroughput.buffer.size", 4 * 1024);
|
BUFFER_SIZE = conf.getInt("dfsthroughput.buffer.size", 4 * 1024);
|
||||||
|
|
||||||
String localDir = conf.get("mapred.temp.dir");
|
String localDir = conf.get("mapred.temp.dir");
|
||||||
|
if (localDir == null) {
|
||||||
|
localDir = conf.get("hadoop.tmp.dir");
|
||||||
|
conf.set("mapred.temp.dir", localDir);
|
||||||
|
}
|
||||||
dir = new LocalDirAllocator("mapred.temp.dir");
|
dir = new LocalDirAllocator("mapred.temp.dir");
|
||||||
|
|
||||||
System.setProperty("test.build.data", localDir);
|
System.setProperty("test.build.data", localDir);
|
||||||
|
|
Loading…
Reference in New Issue