hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1524229 - /hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java
Date Tue, 17 Sep 2013 21:23:18 GMT
Author: stack
Date: Tue Sep 17 21:23:17 2013
New Revision: 1524229

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

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=1524229&r1=1524228&r2=1524229&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
Tue Sep 17 21:23:17 2013
@@ -47,6 +47,7 @@ import org.apache.hadoop.hbase.regionser
 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 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));
     FileSystem fs = FileSystem.get(getConf());
-    LOG.info("" + fs);
+    LOG.info("FileSystem: " + fs);
     try {
       if (rootRegionDir == null) {
         rootRegionDir = TEST_UTIL.getDataTestDir("HLogPerformanceEvaluation");



Mime
View raw message