You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Jinho Kim (JIRA)" <ji...@apache.org> on 2016/02/05 06:31:39 UTC

[jira] [Resolved] (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 ]

Jinho Kim resolved TAJO-2072.
-----------------------------
    Resolution: Fixed

committed it
Thanks for your contribution!!

> 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. Tajo uses the getRegionLocator() method of HTable, HBase 1.1.0 version.
> I wish getRegionLocator() method to remove for HBase 1.0.0 compatibility. HTable already implements RegionLocator interface.
> Thank you.
>   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)