【问题标题】:/hbase/meta-region-server because node does not exist (not an error)/hbase/meta-region-server 因为节点不存在(不是错误)
【发布时间】:2016-01-23 21:47:08
【问题描述】:

我在集群模式下运行 hbase 时出现以下错误:

DEBUG org.apache.hadoop.hbase.zookeeper.ZKUtil - catalogtracker-on-hconnection-0x6e704bd0x0, quorum=node2:2181, baseZNode=/hbase 在znode上设置尚不存在的观察者,/hbase/meta-region -服务器

【问题讨论】:

    标签: hadoop hbase


    【解决方案1】:

    我遇到了类似的错误,并通过以下操作解决了它:

    1) 确保 HBase 客户端版本与集群上的 HBase 版本兼容。 2) 将 hbase-site.xml 添加到您的应用程序类路径中,以便 HBase 客户端从中确定所有适当的 HBase 配置。

    val conf = org.apache.hadoop.hbase.HBaseConfiguration.create()
    // Instead of the following settings, pass hbase-site.xml in classpath 
    // conf.set("hbase.zookeeper.quorum", hbaseHost)
    // conf.set("hbase.zookeeper.property.clientPort", hbasePort)
    
    HBaseAdmin.checkHBaseAvailable(conf);
    log.debug("HBase found! with conf " + conf);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-04
      • 2014-07-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多