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

HBase administration tools


Here, we will discuss HBase administrating tools that are already available. We will also study the HBase check (hbck) and the HBase health check script a bit more.

hbck – HBase check

The hbck command is used to check/repair HBase. This command finds out inconsistencies in the HBase cluster, if they exist, and gives a formatted output for them. This command/tool checks for region consistency and table integrity problems. It works in two modes:

  • Read-only mode: This only displays inconsistencies if they exist

  • Read-write-repair mode: This reports inconsistencies and tries to repair them

It is good to repair inconsistencies that have lower risk while executing a repair hbck command. These region consistency repairs are localized-single-region repairs, which only modify in-memory data, wrong ZooKeeper data, or patch holes in the metadata table (an inconsistency exists if every possible row key doesn't resolve to exactly one region, and if every region isn't assigned and...