HBASE-7048 Regionsplitter requires the hadoop config path to be in hbase classpath (Ming Ma)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1402197 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-10-25 16:05:01 +00:00
parent 0c1a3541e9
commit dc14281b85
1 changed files with 2 additions and 2 deletions

View File

@ -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();