predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marius Rabenarivo <mariusrabenar...@gmail.com>
Subject [PIO 0.10.0][Universtal Recommender 0.5] Exception when using remote Elasticsearch while training
Date Thu, 06 Apr 2017 23:27:26 GMT
Hello,

I try to run training from a remote machine.

It fails in later stage due to this exception :

org.elasticsearch.hadoop.rest.EsHadoopNoNodesLeftException: Connection
error (check network and/or proxy settings)- all nodes failed; tried
[[engine-server:9300]]

According to the stack trace the error is coming from this line :

https://github.com/actionml/universal-recommender/blob/master/src/main/scala/EsClient.scala#L179

It was using a default configuration to access ES.

I tried to replace this line with :


    val elasticSearchConf = Storage.getConfig("ELASTICSEARCH").get

    val conf = Map(
      "es.mapping.id" -> "id",
      "es.nodes" -> elasticSearchConf.properties.get("HOSTS").head,
      "es.port" -> elasticSearchConf.properties.get("PORTS").head
    )

    indexRDD.saveToEs(newIndexURI, conf)

but I still getting the same error.

Regards,

Marius

Mime
View raw message