【问题标题】:Node /hbase is not in ZooKeeper节点 /hbase 不在 ZooKeeper 中
【发布时间】:2014-12-16 15:31:39
【问题描述】:

在本地单节点 Hadoop (HortonWorks) 上运行 PredictionIO 时出现以下错误:

 Storage Backend Connections
  Verifying Meta Data Backend
  Verifying Model Data Backend
  Verifying Event Data Backend
  ERROR client.HConnectionManager$HConnectionImplementation - The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
  ERROR storage.Storage$ - Error initializing storage client for source HBASE
  ERROR storage.Storage$ - org.apache.hadoop.hbase.MasterNotRunningException: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
 java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:313)
at scala.None$.get(Option.scala:311)
at io.prediction.data.storage.Storage$.sourcesToClientMeta(Storage.scala:90)
at io.prediction.data.storage.Storage$.getDataObject(Storage.scala:193)
at io.prediction.data.storage.Storage$.getDataObject(Storage.scala:178)
at io.prediction.data.storage.Storage$.getLEvents(Storage.scala:274)
at io.prediction.data.storage.Storage$.verifyAllDataObjects(Storage.scala:246)
at io.prediction.tools.Console$.status(Console.scala:1259)
at io.prediction.tools.Console$$anonfun$main$1.apply(Console.scala:646)
at io.prediction.tools.Console$$anonfun$main$1.apply(Console.scala:601)
at scala.Option.map(Option.scala:145)
at io.prediction.tools.Console$.main(Console.scala:601)
at io.prediction.tools.Console.main(Console.scala)

Unable to connect to all storage backend(s) successfully. Please refer to error message(s) above. Aborting.

我应该如何在本地 Hadoop 安装上配置 HBase + Zookeepr?

【问题讨论】:

  • 你有没有在hbase-regionserver之前启动hbase-master?好像master没有启动或者有错误。
  • 我从 HortonWorks Web 界面启动 所有 服务。是否有可能以错误的顺序启动它们?

标签: hadoop hortonworks-data-platform predictionio hbasestorage


【解决方案1】:

在Hbase文件夹/conf/hbase-site.xml,配置或添加:

<property>
  <name>hbase.zookeeper.property.dataDir</name>
  <value>YOUR ZOOKEEPER FOLDER</value>
</property>

例如:

<property>
  <name>hbase.zookeeper.property.dataDir</name>
  <value>/home/myname/zookeeper-3.4.6</value>
</property>

【讨论】:

    猜你喜欢
    • 2018-06-04
    • 2017-05-18
    • 1970-01-01
    • 2015-05-24
    • 1970-01-01
    • 2016-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多