Hbase PredictionIO pio状态:Zookeeper存在失败

Hbase PredictionIO pio状态:Zookeeper存在失败,hbase,apache-zookeeper,predictionio,Hbase,Apache Zookeeper,Predictionio,我通过$bash-c“$(curl-s)”安装了PredictionIO 当我执行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$] Ap

我通过$bash-c“$(curl-s)”安装了PredictionIO

当我执行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)
正如中所建议的,我试图通过$~/PredictionIO/vendors/HBase-x.y.z/bin/start HBase.sh启动HBase,但仍然存在相同的错误


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

听起来HBase没有正确初始化。首先尝试执行
pio全部停止
,然后尝试
pio全部启动
,然后再次尝试
pio状态
。如果不起作用,则继续运行并再次运行
pio stop all
,然后通过键入以下命令
ps aux | grep HBase
,查找正在运行的HBase实例,并关闭正在运行的HBase的相应实例(使用
kill-9
)。再次输入
pio start all
后,您应该能够运行
pio status
,而不会出现前面提到的错误

----编辑-----


由于您刚刚安装了PredictionIO,运行
pio start all
就足够了。然而,根据我的经验,如果您使用HBase,您可能会遇到这样一种情况:您必须如上所述手动终止进程。

听起来HBase没有正确初始化。首先尝试执行
pio全部停止
,然后尝试
pio全部启动
,然后再次尝试
pio状态
。如果不起作用,则继续运行并再次运行
pio stop all
,然后通过键入以下命令
ps aux | grep HBase
,查找正在运行的HBase实例,并关闭正在运行的HBase的相应实例(使用
kill-9
)。再次输入
pio start all
后,您应该能够运行
pio status
,而不会出现前面提到的错误

----编辑-----


由于您刚刚安装了PredictionIO,运行
pio start all
就足够了。然而,根据我的经验,如果您使用的是HBase,您可能会遇到这样的情况:您必须如上所述手动终止进程。

自Oracle购买它们以来,Prediction IO已经完全失去了绘图和任何可行的产品!什么都不管用了。。actionML端口也已断开。我建议开始寻找其他地方的ML工具包

自Oracle购买它们以来,预言IO已经完全失去了剧情和任何可行的产品!什么都不管用了。。actionML端口也已断开。我建议开始在其他地方寻找ML工具包,根据您的情况,睡眠几秒钟(100?)。 “等待10秒HBase启动”并不总是足够长。
我在启动脚本中尽可能晚地执行pio状态以节省时间(无需睡眠)。然后pio状态将始终成功。

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

可能为时已晚,但对我有效

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

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


hbase.rootdir
file:///home/{您的用户}/PredictionIO/vendors/hbase-1.2.6/data
hbase.zookeeper.property.dataDir
/主页/{您的用户}/PredictionIO/vendors/hbase-1.2.6/zookeeper

可能太晚了,但对我来说很有效

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

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


hbase.rootdir
file:///home/{您的用户}/PredictionIO/vendors/hbase-1.2.6/data
hbase.zookeeper.property.dataDir
/主页/{您的用户}/PredictionIO/vendors/hbase-1.2.6/zookeeper

我知道这是一篇老文章,但如果有人访问这篇文章,写下这个答案可能会有所帮助

检查hbase日志,您可能会看到
意外异常,异常退出
java.io.EOFException
此异常至少在我的日志中

遍历到供应商/hbase中zookeeper目录下的verion_2目录

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

我知道这是一篇老文章,但如果有人访问这篇文章,写下这个答案可能会有所帮助

检查hbase日志,您可能会看到
意外异常,异常退出
java.io.EOFException
此异常至少在我的日志中

遍历到供应商/hbase中zookeeper目录下的verion_2目录

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

谢谢你,马可!我一直遵循你的建议,直到“pio状态”。但是,同样的错误消息显示在那里。有什么线索吗?谢谢你,马可!我一直遵循你的建议,直到“pio状态”。但是,同样的错误消息显示在那里。有什么线索吗?这是真的,只是一个更正,Salesforce买了它们,而不是Oracle。这是真的,只是一个更正,Salesforce买了它们,而不是Oracle。你应该在$pio_log_DIR下查看pio.log以了解更多信息你应该在$pio_log_DIR下查看pio.log以了解更多信息