mingfang/docker-predictionio

Unable to connect to all storage backends

Closed this issue · 2 comments

root@4e20ca7804b7:/# pio status
[INFO] [Console$] Inspecting PredictionIO...
[INFO] [Console$] PredictionIO 0.9.4 is installed at /PredictionIO
[INFO] [Console$] Inspecting Apache Spark...
[INFO] [Console$] Apache Spark is installed at /spark
[INFO] [Console$] Apache Spark 1.4.1 detected (meets minimum requirement of 1.3.0)
[INFO] [Console$] Inspecting storage backend connections...
[INFO] [Storage$] Verifying Meta Data Backend (Source: ELASTICSEARCH)...
[ERROR] [Console$] Unable to connect to all storage backends successfully. The following shows the error message from the storage backend.
[ERROR] [Console$] None of the configured nodes are available: [] (org.elasticsearch.client.transport.NoNodeAvailableException)
[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 -> /elasticsearch

I have the same probs. If I run the image, it works fine after pio-stop-all and pio-start-all and waiting the 10 secs within pio-start-all. But when building the image it fails. I tried "RUN sleep" for 10, 60 and 100 secs between pio-start-all and pio status but pausing is not the reason. Any ideas?

Please use the runsvdir-start& command and not any of the pio-start* commands.