2015-12-28 28 views
1

我通過安裝PredictionIO $的bash -c 「$(捲曲-s https://install.prediction.io/install.sh)」PredictionIO PIO狀態:動物園管理員存在失敗

,當我做了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 /供應商/ HBase的-XYZ /斌/ start-hbase.sh啓動HBase的,但仍是同樣的錯誤。

我可以嘗試哪些其他解決方案?我需要手動安裝zookeeper嗎? (我認爲快速安裝會安裝它)。謝謝!

+0

您應該檢查$ PIO_LOG_DIR下的pio.log以獲取更多信息 –

回答

6

這聽起來像HBase尚未正確初始化。先嚐試做pio-stop-all然後pio-start-all,然後再嘗試pio status。如果這不起作用,請繼續並再次運行pio-stop-all,然後通過鍵入以下命令ps aux | grep hbase來查找正在運行的HBase實例,然後關閉正在運行的相應HBase實例(使用kill -9 <PID>)。再次輸入pio-start-all後,您應該可以運行pio status,而不會出現前面提到的錯誤。

----編輯-----

既然你剛安裝PredictionIO,運行pio-start-all應該足夠了。但是,根據我的經驗,如果您使用的是HBase,則可能會遇到必須按上面所述手動殺死該進程的情況。

+0

感謝Marco!我一直跟隨你的建議,直到'皮奧地位'。但是,在那裏顯示相同的錯誤消息。任何線索? – Jia

1

預測-IO完全失去了自從Oracle購買以來的陰謀和任何可行的產品!沒有任何工作了.. actionML端口也被打破。我建議開始尋找ML-Toolkit的其他地方

+0

這是真的,只是一個更正,Salesforce購買了它們,而不是Oracle。 –

0

根據您的情況睡幾秒(100?)。 「等待HBase啓動10秒鐘」並不總是足夠長。 我在啓動腳本中儘可能晚地執行pio狀態以節省時間(無需睡眠)。然後,pio身份將始終成功。