You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there anything special about your indices? Does something show up in the ES 2.0 logs? The gist (thanks for this by the way and for turning on logging) things are pretty clear - the 500 start appearing quite early on on the various Spark tasks - all at various stages during the initial handshake.
500 indicates there's something wrong with ES - is it running out of space or anything like that?
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.elasticsearch.spark._
val conf = new SparkConf().setAppName("foo").setMaster("local[8]")
conf.set("es.index.auto.create", "true")
conf.set("es.nodes", "elasticsearch.service.bohr.consul")
conf.set("es.port", "9200")
val sc = new SparkContext(conf)
val numbers = Map("one" -> 1, "two" -> 2, "three" -> 3)
val airports = Map("arrival" -> "Otopeni", "SFO" -> "San Fran")
sc.makeRDD(Seq(numbers, airports)).saveToEs("foo/bar")
On port 80 we have a reverse proxy, that returns 500 if it cannot route a request. From the logs of the reverse proxy I can see that es-hadoop is trying to make these requests:
192.168.88.80 - els1.node.bohr.consul HEAD /foo HTTP/1.1 500 - 2.504 ms
192.168.88.80 - els1.node.bohr.consul GET /_nodes/http HTTP/1.1 500 - 2.325 ms
192.168.88.80 - els1.node.bohr.consul GET /_nodes/http HTTP/1.1 500 - 2.200 ms
192.168.88.80 - els1.node.bohr.consul GET /_nodes/http HTTP/1.1 500 - 2.084 ms
192.168.88.80 - els1.node.bohr.consul HEAD /foo HTTP/1.1 500 - 1.971 ms
192.168.88.80 - els1.node.bohr.consul GET /_nodes/http HTTP/1.1 500 - 1.851 ms
192.168.88.80 - els1.node.bohr.consul HEAD /foo HTTP/1.1 500 - 1.725 ms
192.168.88.80 - els1.node.bohr.consul HEAD /foo HTTP/1.1 500 - 1.610 ms
We use consul for service discovery. It could be that ES 2.0 is redirecting requests for elasticsearch.service.bohr.consul:9200 to els1.node.bohr.consul:80.
https://gist.github.com/amiorin/d84dcdcbbdf29fa36079
It works with ES 1.7
ngrep says that no 500 status is returned by ES 2.0
Any idea?
The text was updated successfully, but these errors were encountered: