Troubleshooting Common HBase Startup and Runtime Issues
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