ZooKeeper available but no active master location found

时间:2025-04-12 07:45:48

环境:

Ubuntu19.10

Hbase2.2.4(自己编译的,并不是从网上下载的[1])

Hadoop3.2.1

 

问题:
①ZooKeeper available but no active master location found
②Invalid Trailer version. got xxx expected 1
③()
上面的三个问题是连续的,也就是说你解决一个还会碰到下一个。

解决上述所有问题的方案:
步骤①
$HADOOP/share/hadoop/yarn/timelineservice/lib下面的四个jar全部替换成2.2.4的版本,与自己用的$HBASE版本一致
hbase-annotations-1.2.  hbase-client-1.2.  hbase-common-1.2.  hbase-protocol-1.2.

步骤②
hdfs dfs -ls /hbase/WALs
hdfs dfs -rm -r /hbase/WALs/*

 

步骤③

重启hbase即可

 

Reference:

[1]编译hbase2.2.4+hadoop3.2.1

[2]hbase 启动错误no active master location found 处理