I am using elasticsearch-spark-13_2.10-5.0.0-beta1.jar for spark 1.6 and elasticsearch version 5.0.2
I am trying the very basic code:
val lpiRDD = sc.esRDD("sdp/lpi")
lpiRDD.count
And getting following error
Caused by: org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: request [/sdp/lpi/_search] contains unrecognized parameter: [_local]
{"query":{"match_all":{}}}
at org.elasticsearch.hadoop.rest.RestClient.checkResponse(RestClient.java:488)
at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:446)
at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:436)
at org.elasticsearch.hadoop.rest.RestRepository.scroll(RestRepository.java:363)
at org.elasticsearch.hadoop.rest.ScrollQuery.hasNext(ScrollQuery.java:92)
Please help.
Thanks a lot
Apratim