...

Big Data - HBASE

Back to Course

Lesson Description


Lession - #884 HBase Update Data


Updating Data utilizing HBase Shell

You can refresh a current cell value utilizing the put order. To do as such, simply follow a similar syntax and notice your new value as displayed below.

The recently given value replaces the current value, updating the column.

 

 

 

Updating Data Using Java API

You can refresh the information in a specific cell utilizing the put(>
strategy. Follow the means given below to refresh a current cell worth of a table.

Stage 1: Instantiate the Configuration Class
Arrangement class adds HBase setup documents to its item. You can make a design object utilizing the make(>
strategy for the HbaseConfiguration class as displayed below.

Stage 2: Instantiate the HTable Class

You have a class called HTable, an execution of Table in HBase. This class is utilized to speak with a solitary HBase table. While starting up this class, it acknowledges the arrangement object and the table name as boundaries. You can start up the HTable class as displayed below.

 

 

 



Stage 3: Instantiate the Put Class

To embed information into HBase Table, the add(>
strategy and its variations are utilized. This technique has a place with Put, subsequently start up the put class. This class requires the line name you need to embed the information into, in string design. You can start up the Put class as displayed below.

Stage 4: Update an Existing Cell

The add(>
strategy for Put class is utilized to embed information. It requires 3 byte clusters addressing section family, segment qualifier (segment name>
, and the worth to be embedded, separately. Embed information into HBase table utilizing the add(>
technique as displayed below.

Stage 5: Save the Data in Table
After inserting the necessary lines, save the progressions by adding the put case to the put(>
technique for the HTable class as displayed below.

Stage 6: Close HTable Instance

After creating data in HBase Table, close the HTable method using the nearby(>
strategy as displayed below.