Book Image

Learning HBase

By : Shashwat Shriparv
Book Image

Learning HBase

By: Shashwat Shriparv

Overview of this book

Table of Contents (18 chapters)
Learning HBase
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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.