[
https://issues.apache.org/jira/browse/TAJO-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Byunghwa Yun updated TAJO-2072:
-------------------------------
Description:
Now, the hbase storage code is below. The getRegionLocator() method of HTable
added HBase 1.1.0 version.
I wish getRegionLocator() method to remove for HBase 1.0.0 compatibility.
HTable already 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();
}
}
was:
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();
}
}
> 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 to remove for HBase 1.0.0 compatibility.
> HTable already 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)