HBASE-9562 Make HLogPE run against configured FS

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1524228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-09-17 21:21:52 +00:00
parent 3994ae593a
commit 5d68130e8d
1 changed files with 6 additions and 1 deletions

View File

@ -47,6 +47,7 @@ import org.apache.hadoop.hbase.regionserver.wal.HLog.Entry;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import org.apache.hadoop.hbase.HConstants;
/**
* This class runs performance benchmarks for {@link HLog}.
@ -170,8 +171,12 @@ public final class HLogPerformanceEvaluation extends Configured implements Tool
}
// Run HLog Performance Evaluation
// First set the fs from configs. Do it for both configs in case we
// are on hadoop1
getConf().set("fs.default.name", getConf().get(HConstants.HBASE_DIR));
getConf().set("fs.defaultFS", getConf().get(HConstants.HBASE_DIR));
FileSystem fs = FileSystem.get(getConf());
LOG.info("" + fs);
LOG.info("FileSystem: " + fs);
try {
if (rootRegionDir == null) {
rootRegionDir = TEST_UTIL.getDataTestDir("HLogPerformanceEvaluation");