create an error in hbase

1. phenomenon: hbase shell> status # normal

              hbase shell> list # normal

              hbase shell> create 'person', 'name', 'age' # given as follows:

ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

2. nature: see hbase log, being given as follows:

vim ./hbase-root-master-do1cloud01.log.1

2019-07-31 14:58:29,149 WARN  [master/do1cloud01:16000:becomeActiveMaster] master.HMaster: hbase:meta,,1.1588230740 is NOT online; state={1588230740 state=OPENING, ts=1564556308397, server=do1cloud02,16020,1564556283727}; ServerCrashProcedures=true. Master startup cannot progress, in holding-pattern until region onlined.

3. Solution:

Reference in this document: https://blog.csdn.net/dream_bin/article/details/88343000

1 , no time synchronization, DATE - R & lt view of the machine of each node time to see if an error in the normal error ---- I within 30 seconds 

2 , the view parameter hbase.rootdir hbase-site.xml, the need to be placed the HDFS, and the host name and port number for an hadoop the core- and the site.xml fs.defaultFS consistent parameter set correctly ---- I 

3 , modify the hostname mapping each host, i.e., / etc / the hosts I set up the correct file ---- 

4 , attention hbase and hadoop version mismatch problems, the hadoop-xxxx.jar under hadoop replace hadoop- under hbase / lib xxxx.jar ---- this ridiculous talk, after replacing a thorough hbase not start the process, in fact, view the version matching table hbase official website on OK, no need to manually replace jar package 

 5 , copy the core-site.xml and hdfs-site.xml in hadoop to hbase / conf the directory ---- operate correctly

 

Guess you like

Origin www.cnblogs.com/hixiaowei/p/11276759.html