HBASE-6927 WrongFS using HRegionInfo.getTableDesc() and different fs for hbase.root and fs.defaultFS

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1393234 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-10-02 23:13:58 +00:00
parent 596affcfb6
commit 7bed701850
2 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,7 @@ def isSuccessfulScan(admin, r)
scan.setBatch(1)
scan.setCaching(1)
scan.setFilter(FirstKeyOnlyFilter.new())
table = getTable(admin.getConfiguration(), r.getTableDesc().getName())
table = getTable(admin.getConfiguration(), r.getTableName())
scanner = table.getScanner(scan)
begin
results = scanner.next()

View File

@ -570,6 +570,8 @@ public class HRegionInfo implements Comparable<HRegionInfo> {
@Deprecated
public HTableDescriptor getTableDesc() {
Configuration c = HBaseConfiguration.create();
c.set("fs.defaultFS", c.get(HConstants.HBASE_DIR));
c.set("fs.default.name", c.get(HConstants.HBASE_DIR));
FileSystem fs;
try {
fs = FileSystem.get(c);