Hbaseが表示されますエラー:ZooKeeperからマスターアドレスを取得できません。 znodeデータ== null



Hbase Appears Error Cant Get Master Address From Zookeeper



Hbaseが表示されるエラー:ZooKeeperznodeデータからマスターアドレスを取得できません== null

問題のリスト(同時に表示されます):



2019-04-11 15:09:33,089 INFO [node111:16000.activeMasterManager] master.RegionStates:Transition {1a79ef4199d6f0d80bcba8e83c5e4c67 state = OPEN、ts = 1554966573089、server = node116,16020,1554893456913} to {1a79ef4199d6f0d80 1554966573089、server = node116,16020,1554893456913}

org.apache.zookeeper.KeeperException $ ConnectionLossException:KeeperErrorCode = / hbase / region-in-transitionのConnectionLoss



Zookeeperクライアントエラー:パケットlen *が範囲外です!

解決:
ステップ1:パラメーター '-Djute.maxbuffer = 41943040'を追加します

Find zkCli.sh and add the definition of jute.maxbuffer to the bottom java command (using the D parameter): '$JAVA' '-Dzookeeper.log.dir=${ZOO_LOG_DIR}' '-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}' '-Djute.maxbuffer=41943040' -cp '$CLASSPATH' $CLIENT_JVMFLAGS $JVMFLAGS org.apache.zookeeper.ZooKeeperMain 'root@xxxxx'

ステップ2:



Run zkCli.sh (on the leader machine of the three machines in the zookeeper cluster) rmr /hbase

次に、zookeeperとhbaseクラスターを再起動します。
ステップ3:

# View damaged blocks in hbase hbase hbck #fix hbase hbase hbck -repair Turn off the balance to prevent the shards on the original node from migrating to other nodes after the service is stopped. When it is moved back, it is a waste of time. hbase(main):001:0> balance_switch true # Fix .META table hbase hbck -fixMeta # When a vulnerability occurs hbase hbck -fixHdfsHoles # regioninfo missing hbase hbck -fixHdfsOrphans # hbase region Error in reference file # Found lingering reference file hdfs: hbase hbck -fixReferenceFiles # Fix assignments problem hbase hbck -fixAssignments

移行問題の地域

hbaseのテーブルを強制的に削除する方法
ステップ1:hdfsの強制削除、最初にhdfsでテーブルの場所を見つけてから、削除する

hadoop dfs -rm -r -f /usr/cwgis/data/hbase/tmp/hbase/data/default/rr500000_ed2009_dltb_1661w_SPATIAL_IDX_ROUND_ROBIN_500000

ステップ2:zookeeperの/ hbase / table /にあるテーブルの名前を削除します

zkCli.sh delete /hbase/table/rr500000_ed2009_dltb_1661w_SPATIAL_IDX_ROUND_ROBIN_500000

-終わり-