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 do it…
Let's connect to the cluster that we created earlier and make sure that all the components are working.
The structure of the call will be as follows:
Let's log in to the HBase Master by executing the following command:
- Before...