HBase – Read Data
Reading Data using HBase Shell The get command and the get() method of HTable class are used to read data from a table in HBase. Using get command, you can get a single row of data at a…
Reading Data using HBase Shell The get command and the get() method of HTable class are used to read data from a table in HBase. Using get command, you can get a single row of data at a…
Updating Data using HBase Shell You can update an existing cell value using the put command. To do so, just follow the same syntax and mention your new value as shown below.…
Inserting Data using HBase Shell This chapter demonstrates how to create data in an HBase table. To create data in an HBase table, the following commands and methods are used:…
This chapter describes the java client API for HBase that is used to perform CRUD operations on HBase tables. HBase is written in Java and has a Java Native API. Therefore it…
exit You exit the shell by typing the exit command. hbase(main):021:0> exit Stopping HBase To stop HBase, browse to the HBase home folder and type the following command. ./bin/stop-hbase.sh Stopping HBase Using…
Dropping a Table using HBase Shell Using the drop command, you can delete a table. Before dropping a table, you have to disable it. hbase(main):018:0> disable 'emp' 0 row(s) in 1.4580 seconds…
Existence of Table using HBase Shell You can verify the existence of a table using the exists command. The following example shows how to use this command. hbase(main):024:0> exists 'emp' Table emp…
describe This command returns the description of the table. Its syntax is as follows: hbase> describe 'table name' Given below is the output of the describe command on the emp table. hbase(main):006:0>…
Enabling a Table using HBase Shell Syntax to enable a table: enable ‘emp’ Example Given below is an example to enable a table. hbase(main):005:0> enable 'emp' 0 row(s) in 0.4580…
Disabling a Table using HBase Shell To delete a table or change its settings, you need to first disable the table using the disable command. You can re-enable it using…