You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Byunghwa Yun (JIRA)" <ji...@apache.org> on 2016/02/02 03:58:40 UTC
[jira] [Updated] (TAJO-2072) The constructor of
RegionSizeCalculator changes for HBase 1.0.0 compatibility
[ https://issues.apache.org/jira/browse/TAJO-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Byunghwa Yun updated TAJO-2072:
-------------------------------
Summary: The constructor of RegionSizeCalculator changes for HBase 1.0.0 compatibility (was: The constructor or RegionSizeCalculator changes for HBase 1.0.0 compatibility)
> The constructor of RegionSizeCalculator changes for HBase 1.0.0 compatibility
> -----------------------------------------------------------------------------
>
> Key: TAJO-2072
> URL: https://issues.apache.org/jira/browse/TAJO-2072
> Project: Tajo
> Issue Type: Bug
> Components: HBase Storage
> Affects Versions: 0.11.1
> Reporter: Byunghwa Yun
> Assignee: Byunghwa Yun
> Fix For: 0.12.0, 0.11.1
>
>
> Now, the hbase storage code is below. The getRegionLocator() method of HTable added HBase 1.1.0 version.
> I wish getRegionLocator() method for HBase 1.0.0 compatibility. HTable implements RegionLocator interface.
> public RegionSizeCalculator(HTable table) throws IOException {
> HBaseAdmin admin = new HBaseAdmin(table.getConfiguration());
> try {
> init(table.getRegionLocator(), admin);
> } finally {
> admin.close();
> }
> }
> to
> public RegionSizeCalculator(HTable table) throws IOException {
> HBaseAdmin admin = new HBaseAdmin(table.getConfiguration());
> try {
> init(table, admin);
> } finally {
> admin.close();
> }
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)