Apache HBase 0.95 allows you to assign table name to a jruby variable. This new feature allows you to save lot of time while working on table operations such as insert, read, delete data from table. In this article, we will discuss working with HBase table variables – assign table name to jruby variable with some examples.
Working with HBase Table Variables – Assign Table Name to jruby Variable
In earlier version, HBase shell commands takes table name as an argument. Apache HBase 0.95 version of HBase adds facility to assign table name to a jruby variable. You can use that variable in your subsequent table operations.
Related posts:
- HBase Exit Code – Capture Last Executed Command Status
- Insert Data using HBase Shell put Command and Examples
- HBase Create Table using Shell Commands and Examples
- Commonly used HBase Table management commands and Examples
HBase Commands with Table Variables Examples
Below examples demonstrates usage of HBase table variables:
Next section explains you the usage of HBase shell commands without table variable.
HBase Commands without Table Variables Examples
In previous version of HBase, you would always specify table name as an argument to the shell commands.