1

我通过$ bash -c "$(curl -s https://install.prediction.io/install.sh )"安装了 PredictionIO

当我执行pio status时,它显示以下消息:

[INFO] [Console$] Inspecting PredictionIO...
[INFO] [Console$] PredictionIO 0.9.5 is installed at /Users/jia.huang/PredictionIO
[INFO] [Console$] Inspecting Apache Spark...
[INFO] [Console$] Apache Spark is installed at /Users/jia.huang/PredictionIO/vendors/spark-1.5.1
[INFO] [Console$] Apache Spark 1.5.1 detected (meets minimum requirement of 1.3.0)
[INFO] [Console$] Inspecting storage backend connections...
[INFO] [Storage$] Verifying Meta Data Backend (Source: ELASTICSEARCH)...
[INFO] [Storage$] Verifying Model Data Backend (Source: LOCALFS)...
[INFO] [Storage$] Verifying Event Data Backend (Source: HBASE)...
[ERROR] [RecoverableZooKeeper] ZooKeeper exists failed after 1 attempts
[ERROR] [ZooKeeperWatcher] hconnection-0x3035228, quorum=localhost:2181, baseZNode=/hbase Received unexpected KeeperException, re-throwing exception
[WARN] [ZooKeeperRegistry] Can't retrieve clusterId from Zookeeper
[ERROR] [StorageClient] Cannot connect to ZooKeeper (ZooKeeper ensemble: localhost). Please make sure that the configuration is pointing at the correct ZooKeeper ensemble. By default, HBase manages its own ZooKeeper, so if you have not configured HBase to use an external ZooKeeper, that means your HBase is not started or configured properly.
[ERROR] [Storage$] Error initializing storage client for source HBASE
[ERROR] [Console$] Unable to connect to all storage backends successfully. The following shows the error message from the storage backend.
[ERROR] [Console$] Data source HBASE was not properly initialized. (io.prediction.data.storage.StorageClientException)
[ERROR] [Console$] Dumping configuration of initialized storage backend sources. Please make sure they are correct.
[ERROR] [Console$] Source Name: ELASTICSEARCH; Type: elasticsearch; Configuration: TYPE -> elasticsearch, HOME -> /Users/jia.huang/PredictionIO/vendors/elasticsearch-1.4.4
[ERROR] [Console$] Source Name: LOCALFS; Type: localfs; Configuration: PATH -> /Users/jia.huang/.pio_store/models, TYPE -> localfs
[ERROR] [Console$] Source Name: HBASE; Type: (error); Configuration: (error)

正如https://docs.prediction.io/resources/faq/中所建议的,我尝试通过$ ~/PredictionIO/vendors/hbase-xyz/bin/start-hbase.sh启动 HBase ,但仍然存在相同的错误。

我可以尝试哪些其他解决方案?我需要手动安装zookeeper吗?(我认为快速安装已经安装了它)。谢谢!

4

5 回答 5

7

It sounds like HBase hasn't been initialized properly. First try doing pio-stop-all and then pio-start-all, and then try pio status again. If that doesn't work, then go ahead and run pio-stop-all again, and then look for a running instance of HBase by typing in the following command ps aux | grep hbase, and shut down the appropriate instance of HBase that is running (use kill -9 <PID>). After typing in pio-start-all again, you should be able to run pio status without the fore mentioned error.

----EDIT-----

Since you just installed PredictionIO, running pio-start-all should suffice. However, in my experience, if you are using HBase you may run into a situation where you have to kill the process manually as stated above.

于 2015-12-29T01:56:41.927 回答
1

自从甲骨文收购它们以来,Prediction-IO 已经完全失去了情节和任何可行的产品!什么都没有了。actionML 端口也坏了。我建议开始在其他地方寻找 ML-Toolkit

于 2016-05-19T06:22:18.143 回答
1

根据您的情况,睡眠几秒钟(100?)。“等待 10 秒让 HBase 启动”并不总是足够长。我在启动脚本中尽可能晚地执行 pio status 以节省时间(无需睡眠)。那么 pio status 将永远成功。

于 2016-05-25T06:47:16.750 回答
0

可能为时已晚,但对我有用。

在您的供应商中找到 hbase-site.xml

更改 /vendors/hbase-1.2.6/conf/hbase-site.xml

<configuration>
<property>
      <name>hbase.rootdir</name>
      <value>file:///home/{your-user}/PredictionIO/vendors/hbase-1.2.6/data</value>
   </property>
   <property>
     <name>hbase.zookeeper.property.dataDir</name>
     <value>/home/{your-user}/PredictionIO/vendors/hbase-1.2.6/zookeeper</value>
   </property>
</configuration>

于 2018-05-14T14:16:05.777 回答
0

我知道这是一篇旧帖子,但是如果有人访问此帖子,请写下此答案,那么这可能会有所帮助。

检查 hbase 日志,您可能会Unexpected exception, exiting abnormally java.io.EOFException在我的日志中看到此异常。

遍历vendors/hbase中zookeeper目录下的verion_2目录

现在ls -ltr日志文件检查 0 字节长度的最新文件。删除文件并重新启动服务,它应该可以正常工作。我昨天遇到了这个问题,这解决了我的问题。

于 2019-04-22T07:41:05.600 回答