[
https://issues.apache.org/jira/browse/HBASE-6927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matteo Bertozzi updated HBASE-6927:
-----------------------------------
Status: Patch Available (was: Open)
> WrongFS using HRegionInfo.getTableDesc() and different fs for hbase.root and
> fs.defaultFS
> -----------------------------------------------------------------------------------------
>
> Key: HBASE-6927
> URL: https://issues.apache.org/jira/browse/HBASE-6927
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.94.1, 0.92.2, 0.96.0
> Reporter: Matteo Bertozzi
> Assignee: Matteo Bertozzi
> Attachments: HBASE-6927-v0.patch
>
>
> 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)
> {code}
> Configuration c = HBaseConfiguration.create();
> c.set("fs.defaultFS", c.get(HConstants.HBASE_DIR));
> c.set("fs.default.name", c.get(HConstants.HBASE_DIR));
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira