Fading Coder

One Final Commit for the Last Sprint

Home > Tech > Content

Troubleshooting Common HBase Startup and Runtime Issues

Tech Nov 24 16

Master Initialization Failure

When executing status or create commands in the HBase shell after starting the service, you may encounter:

ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
    at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:3064)
    at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:2039)
    at org.apache.hadoop.hbase.master.MasterRpcServices.createTable(MasterRpcServices.java:651)

The master logs typically show warnings like:

WARN [master/s128:16000:becomeActiveMaster] master.HMaster: hbase:meta,,1.1588230740 is NOT online;
state={1588230740 state=OPEN, ts=1567388594985, server=s130,16020,1567155264196};
ServerCrashProcedures=true. Master startup cannot progress, in holding-pattern until region onlined.

Solution: Remove the /hbase znode from ZooKeeper:

rmr /hbase

RegionServer Clock Synchronization Error

During cluster startup with start-hbase.sh, RegionServers may fail with:

ERROR [regionserver/s130:16020] regionserver.HRegionServer: Master rejected startup because clock is out of sync
org.apache.hadoop.hbase.ClockOutOfSyncException: Server s130,16020,1567580190826 has been rejected;
Reported time is too far out of sync with master. Time difference of 41898747ms > max allowed of 120000ms

Solutions:

1. Increase the clock skew tolerance in hbase-site.xml:

<property>
    <name>hbase.master.maxclockskew</name>
    <value>120000</value>
</property>

2. Synchronize system clocks across all cluster nodes. For example, if node s128 shows significant time deviation compared to other nodes:

# On s128
ntpdate -s time.nist.gov
# Or use chrony/ntpd for continuous synchronization

Related Articles

Understanding Strong and Weak References in Java

Strong References Strong reference are the most prevalent type of object referencing in Java. When an object has a strong reference pointing to it, the garbage collector will not reclaim its memory. F...

Comprehensive Guide to SSTI Explained with Payload Bypass Techniques

Introduction Server-Side Template Injection (SSTI) is a vulnerability in web applications where user input is improper handled within the template engine and executed on the server. This exploit can r...

Implement Image Upload Functionality for Django Integrated TinyMCE Editor

Django’s Admin panel is highly user-friendly, and pairing it with TinyMCE, an effective rich text editor, simplifies content management significantly. Combining the two is particular useful for bloggi...

Leave a Comment

Anonymous

◎Feel free to join the discussion and share your thoughts.