Skip to content

Simple Java API HBase manipulation

Simple Java API HBase manipulation

One of the ways to access HBase is through Java API. Here is the code for simple HBase manipulations like creating and changing a table, adding, retrieving and deleting data.

Contents

HOW TO

I used CDH 5.8.4 with Kerberos.
 
If you work with Maven there are 3 libraries that need to be imported:

 

Java Code

I assumed that the program is provided with name of the table to be created and manipulated.

Leave a Reply

Your email address will not be published. Required fields are marked *