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:
parent
596affcfb6
commit
7bed701850
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue