hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1402198 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java
Date Thu, 25 Oct 2012 16:05:47 GMT
Author: tedyu
Date: Thu Oct 25 16:05:46 2012
New Revision: 1402198

URL: http://svn.apache.org/viewvc?rev=1402198&view=rev
Log:
HBASE-7048 Regionsplitter requires the hadoop config path to be in hbase classpath (Ming Ma)


Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java?rev=1402198&r1=1402197&r2=1402198&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java Thu
Oct 25 16:05:46 2012
@@ -631,7 +631,7 @@ public class RegionSplitter {
     Path hbDir = new Path(table.getConfiguration().get(HConstants.HBASE_DIR));
     Path tableDir = HTableDescriptor.getTableDir(hbDir, table.getTableName());
     Path splitFile = new Path(tableDir, "_balancedSplit");
-    FileSystem fs = FileSystem.get(table.getConfiguration());
+    FileSystem fs = tableDir.getFileSystem(table.getConfiguration());
 
     // clear the cache to forcibly refresh region information
     table.clearRegionCache();
@@ -712,7 +712,7 @@ public class RegionSplitter {
     Path hbDir = new Path(table.getConfiguration().get(HConstants.HBASE_DIR));
     Path tableDir = HTableDescriptor.getTableDir(hbDir, table.getTableName());
     Path splitFile = new Path(tableDir, "_balancedSplit");
-    FileSystem fs = FileSystem.get(table.getConfiguration());
+    FileSystem fs = tableDir.getFileSystem(table.getConfiguration());
 
     // using strings because (new byte[]{0}).equals(new byte[]{0}) == false
     Set<Pair<String, String>> daughterRegions = Sets.newHashSet();



Mime
View raw message