2017-03-28 5 views
0

J'essaye de configurer PredictionIO localement en suivant les instructions these.Impossible de se connecter à tous les backends de stockage avec succès avec PredictionIO et Elasticsearch sur Localhost

Malheureusement, je n'arrive pas à le faire fonctionner. Lorsque je tente d'installer un modèle ou exécuter « état pio » je reçois l'erreur en disant que PredictionIO ne peut pas se connecter à 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: HOME -> /Users/tomasz/Documents/PredictionIO/apache-predictionio-0.10.0-incubating/PredictionIO-0.10.0-incubating/vendors/elasticsearch-1.4.4, HOSTS -> localhost, PORTS -> 9200, TYPE -> elasticsearch 

Mon fichier pio-env.sh est configuré comme ceci:

PIO_STORAGE_REPOSITORIES_METADATA_NAME=pio_meta 
PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=ELASTICSEARCH 

PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=pio_event 
PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=HBASE 

PIO_STORAGE_REPOSITORIES_MODELDATA_NAME=pio_model 
PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=LOCALFS 

PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE=elasticsearch 
PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS=localhost 
PIO_STORAGE_SOURCES_ELASTICSEARCH_PORTS=9200 
PIO_STORAGE_SOURCES_ELASTICSEARCH_HOME=$PIO_HOME/vendors/elasticsearch-1.4.4 

PIO_STORAGE_SOURCES_LOCALFS_TYPE=localfs 
PIO_STORAGE_SOURCES_LOCALFS_PATH=$PIO_FS_BASEDIR/models 

PIO_STORAGE_SOURCES_HBASE_TYPE=hbase 
PIO_STORAGE_SOURCES_HBASE_HOME=$PIO_HOME/vendors/hbase-1.0.0 

Toute aide serait appréciée.

Répondre

0

J'ai rencontré cela lorsque j'utilisais Elasticsearch 5.4.x sur PredictionIO version 0.11.0-incubation. Cela a fonctionné quand j'ai utilisé Elasticsearch 1.7.x