HBase REST and Java Client

HBase provides various communication mechanisms for communicating with the datastore, and it's also designed to solve different types of scenario that can occur.

Using the REST server, we are channeling all the requests to HTablePool, which provides efficiency in the following ways:

  • Efficient connection pool management.
  • If there is a case where an object is short-lived, it goes through the entire lifecycle of connection creation, such as connection preparation, preparing metadata, and then the actual transaction. This is totally avoided as the connection object is readily available.
  • Use of caching of the RegionServer information provides significant benefits.
  • In case of less but large size requests, REST is better:

How to ...

Get HBase High Performance Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.