hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject svn commit: r1532087 - /hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java
Date Mon, 14 Oct 2013 20:49:03 GMT
Author: mbertozzi
Date: Mon Oct 14 20:49:03 2013
New Revision: 1532087

URL: http://svn.apache.org/r1532087
Log:
HBASE-9562 Make HLogPE run against configured FS - addendum

Modified:
    hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java

Modified: hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java?rev=1532087&r1=1532086&r2=1532087&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java
(original)
+++ hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java
Mon Oct 14 20:49:03 2013
@@ -46,6 +46,7 @@ import org.apache.hadoop.hbase.client.Pu
 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 HLogPerformanceEvalua
     }
 
     // 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 {



Mime
View raw message