You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2012/10/25 18:05:01 UTC
svn commit: r1402197 -
/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java
Author: tedyu
Date: Thu Oct 25 16:05:01 2012
New Revision: 1402197
URL: http://svn.apache.org/viewvc?rev=1402197&view=rev
Log:
HBASE-7048 Regionsplitter requires the hadoop config path to be in hbase classpath (Ming Ma)
Modified:
hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java
Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java?rev=1402197&r1=1402196&r2=1402197&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java Thu Oct 25 16:05:01 2012
@@ -631,7 +631,7 @@ public class RegionSplitter {
// get table info
Path hbDir = new Path(table.getConfiguration().get(HConstants.HBASE_DIR));
Path tableDir = HTableDescriptor.getTableDir(hbDir, table.getTableName());
- 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();