java.lang.IllegalStateException: No Elasticsearch client configuration detected, check your pio-env.sh forproper configuration settings


Solutions on the web

Solution icon of googlegroups
via Google Groups by Unknown author, 8 months ago
No Elasticsearch client configuration detected, check your pio-env.sh forproper configuration settings

Solution icon of googlegroups
via Google Groups by Ayoub BENALI, 8 months ago
No Elasticsearch client configuration detected, check your pio-env.sh forproper configuration settings

Stack trace

java.lang.IllegalStateException: No Elasticsearch 
client configuration detected, check your pio-env.sh forproper 
configuration settings
	at org.template.EsClient$.client$lzycompute(EsClient.scala:61)
	at org.template.EsClient$.client(EsClient.scala:58)
	at org.template.EsClient$.hotSwap(EsClient.scala:172)
	at org.template.URModel.save(URModel.scala:80)
	at org.template.URAlgorithm.calcAll(URAlgorithm.scala:324)
	at org.template.URAlgorithm.train(URAlgorithm.scala:251)
	at org.template.URAlgorithm.train(URAlgorithm.scala:169)
	at org.apache.predictionio.controller.P2LAlgorithm.trainBase(P2LAlgorithm.scala:49)
	at org.apache.predictionio.controller.Engine$$anonfun$18.apply(Engine.scala:692)
	at org.apache.predictionio.controller.Engine$$anonfun$18.apply(Engine.scala:692)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
	at scala.collection.immutable.List.foreach(List.scala:318)
	at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
	at scala.collection.AbstractTraversable.map(Traversable.scala:105)
	at org.apache.predictionio.controller.Engine$.train(Engine.scala:692)
	at org.apache.predictionio.controller.Engine.train(Engine.scala:177)
	at org.apache.predictionio.workflow.CoreWorkflow$.runTrain(CoreWorkflow.scala:67)
	at org.apache.predictionio.workflow.CreateWorkflow$.main(CreateWorkflow.scala:250)
	at org.apache.predictionio.workflow.CreateWorkflow.main(CreateWorkflow.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672)
	at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
	at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.