我通过$ bash -c"$(curl -s https://install.prediction.io/install.sh)安装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)
正如https://docs.prediction.io/resources/faq/中所建议的那样,我尝试通过$〜/ PredictionIO/vendors/hbase-xyz/bin/start-hbase.sh启动HBase ,但仍然存在相同的错误.
我可以尝试哪些其他解决方案?我需要手动安装zookeeper吗?(我认为快速安装已经安装了它).谢谢!
听起来HBase还没有正确初始化.首先尝试做pio-stop-all
,然后pio-start-all
再尝试pio status
.如果这不起作用,则继续并pio-stop-all
再次运行,然后通过键入以下命令查找正在运行的HBase实例ps aux | grep hbase
,并关闭正在运行(使用kill -9
)的HBase的相应实例.pio-start-all
再次输入后,您应该能够在pio status
没有前面提到的错误的情况下运行.
- - 编辑 - - -
由于您刚安装了PredictionIO,因此运行pio-start-all
就足够了.但是,根据我的经验,如果您使用HBase,您可能会遇到必须手动终止该过程的情况,如上所述.