解决Hbase报错:ERROR: Can‘t get master address from ZooKeeper; znode data == null

文章目录

问题描述

  1. 报错了:这啥公司啊,怎么给的文档怎么错这么多,起一服务,集群里总有几个组件报错

  2. 继上次Flume 脚本,使用hdfs sink报错了以后,hbase又报错了,报错提示如下:

    hbase(main):001:0> list
    TABLE                                                                                                                         
    
    ERROR: Can't get master address from ZooKeeper; znode data == null
    
    Here is some help for this command:
    List all tables in hbase. Optional regular expression parameter could
    be used to filter the output. Examples:
    
      hbase> list
      hbase> list 'abc.*'
      hbase> list 'ns:abc.*'
      hbase> list 'ns:.*'
    

解决方案

  1. 此报错呢,可能是因为zookeeper集群不稳定导致,zookeeper集群和目前的跑数据脚本的集群不一致,我询问了一下,zookeeper是公司内部的物理机集群,跑数据脚本的集群是阿里云集群,哦,我的天呀,什么情况啊…,后面问了问,哦,XXXX历史原因

  2. 拿到zookeeper集群的账号后,又排查排查hbase-site.xml,看这个属性:hbase.zookeeper.quorum

    <configuration>
    	<property>
    		<name>hbase.zookeeper.quorum</name>
    		<value>XXXX:2181,XXXX:2181,XXXXX:2181,XXXXX:2181,XXXXX:2181,XXXXX:2181,XXXXX:2181,XXXXX:2181,XXXXX:2181,XXXXX:2181</value>
    	</property>
    </configuration>
    
  3. 排查一圈了,对了好几遍,没发现问题,最后注意到了这个:2181 ,得了查了下zk集群的防火墙,果然没开这个端口,申请打开以后,问题处理完毕

猜你喜欢

转载自blog.csdn.net/qq_43408367/article/details/134974119
今日推荐