HBASE-9562 Make HLogPE run against configured FS - addendum

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1532086 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
mbertozzi 2013-10-14 20:49:00 +00:00
parent 6bf079b92f
commit 5f61023e1d
1 changed files with 3 additions and 4 deletions

View File

@ -46,6 +46,7 @@ import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.regionserver.HRegion;
import org.apache.hadoop.hbase.regionserver.wal.HLog.Entry;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.util.FSUtils;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import org.apache.hadoop.hbase.HConstants;
@ -174,10 +175,8 @@ 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));
// First set the fs from configs. In case we are on hadoop1
FSUtils.setFsDefault(getConf(), FSUtils.getRootDir(getConf()));
FileSystem fs = FileSystem.get(getConf());
LOG.info("FileSystem: " + fs);
try {