Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.92.2, 0.94.1, 0.95.2
-
None
-
None
-
Reviewed
Description
Calling HRegionInfo.getTableDesc() with different fs schema for hbase.root and fs.defaultFS raises "IllegalArgumentException: Wrong FS" exception.
HRegionInfo.getTableDesc() is called only by bin/region_mover.rb to get the table name and can be easily replaced, getTableDesc() is also deprecated.
The main problem is that getTableDesc() doesn't replace fs.defaultFS with hbase.root as all the other hbase code (all the code does this, except getTableDesc)
Configuration c = HBaseConfiguration.create(); c.set("fs.defaultFS", c.get(HConstants.HBASE_DIR)); c.set("fs.default.name", c.get(HConstants.HBASE_DIR));