Writing HBase shell scripts

We can write a set of commands in a file and run it as:

hbase shell <path_to_script/scriptname>

Alternatively, we can write it as follows:

hbase org.jruby.Main <path_to_script/scriptname>

HBase shell might contain all the available HBase shell commands. Also, we can write a Linux shell command embedded with HBase commands.

Get Learning HBase now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.