我通过$bash-c“$(curl-s)安装了predictioniohttps://install.prediction.io/install.sh)"
当我查看pio状态时,它会显示以下消息:
[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-x.y.z/bin/start-hbase.sh启动hbase,但仍然存在相同的错误。
我还可以尝试哪些解决方案?我需要手动安装zookeeper吗(我以为快速安装已经安装了)。谢谢!
5条答案
按热度按时间vc6uscn91#
听起来hbase没有正确初始化。第一次尝试做
pio-stop-all
然后pio-start-all
,然后再试一次pio status
再一次。如果不行,那就快跑吧pio-stop-all
再次,然后通过键入以下命令查找正在运行的hbase示例ps aux | grep hbase
,并关闭正在运行的相应hbase示例(使用kill -9 <PID>
). 输入后pio-start-all
再说一次,你应该能跑了pio status
没有前面提到的错误。----编辑-----
因为你刚安装了predictionio,正在运行
pio-start-all
应该够了。但是,根据我的经验,如果您使用hbase,您可能会遇到这样一种情况:您必须如上所述手动终止进程。juzqafwq2#
预言io已经完全失去了阴谋和任何可行的产品,因为甲骨文购买了他们!什么都不管用了。。actionml端口也坏了。我建议开始寻找其他地方的ml工具包
2w2cym1i3#
睡眠时间(100?)取决于您的情况。”等待hbase启动10秒“并不总是足够长。我在启动脚本中尽可能晚地执行pio状态以节省时间(无需睡眠)。然后pio状态将始终成功。
rkkpypqq4#
我知道这是一个旧的职位,但写这个答案,如果有人访问这个职位,那么这可能是有帮助的。
检查您可能看到的hbase日志
Unexpected exception, exiting abnormally java.io.EOFException
这个例外至少在我的日志里。遍历到vendors/hbase中zookeeper dir下的verion\u 2 dir
现在
ls -ltr
日志文件检查长度为0字节的最新文件。删除文件并重新启动服务,它应该可以正常工作。我昨天面对这个问题,这解决了我的问题。ttcibm8c5#
可能太迟了,但对我有用。
在您的供应商中找到hbase-site.xml
更改/vendors/hbase-1.2.6/conf/hbase-site.xml