DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCHBASE-85
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Store HBase

HTablePool is deprecated in HBase 0.94.11, 0.95.2 onwards

Created: 09/Dec/13 05:34 PM   Updated: 07/Jun/14 05:19 PM   Resolved: 06/Jun/14 04:27 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.0.release


 Description  « Hide
See https://issues.apache.org/jira/browse/HBASE-6580


The new method is like this :-

// Create a connection to the cluster.
HConnection connection = HConnectionManager.createConnection(Configuration);
HTableInterface table = connection.getTable("myTable");
// use table as needed, the table returned is lightweight
table.close();
// use the connection for other access to the cluster
connection.close();

This will actually mean that we can likely get rid of HBaseConnectionPool and merge HBaseManagedConnection back into ConnectionFactoryImpl - so its like the other store plugins

Andy Jefferson made changes - 21/Dec/13 12:29 PM
Field Original Value New Value
Description See https://issues.apache.org/jira/browse/HBASE-6580 See https://issues.apache.org/jira/browse/HBASE-6580


The new method is like this :-

// Create a connection to the cluster.
HConnection connection = HConnectionManager.createConnection(Configuration);
HTableInterface table = connection.getTable("myTable");
// use table as needed, the table returned is lightweight
table.close();
// use the connection for other access to the cluster
connection.close();

This will actually mean that we can likely get rid of HBaseConnectionPool and merge HBaseManagedConnection back into ConnectionFactoryImpl - so its like the other store plugins
Andy Jefferson added a comment - 06/Jun/14 04:27 PM
GitHub master removes usage of HTablePool and uses HConnection as per HBase migration doc

Andy Jefferson made changes - 06/Jun/14 04:27 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 4.0.0.release [ 12113 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 07/Jun/14 05:19 PM
Status Resolved [ 5 ] Closed [ 6 ]