java.lang.ClassNotFoundException: org.apache.spark.Partition$class

I have been trying to access or read Elasticsearch data into an RDD using code below

val es_rdd = sc.esRDD("spark/docs", "?q=me*") 
     println(es_rdd.first())

but I recieved an error which is mentioned in the title. Am I missing something here just to access data of a simple index and by the way my elasticsearch spark configutrations are these

spark.es.nodes: 127.0.0.1
spark.es.port: "9200"
spark.es.http.timeout: 5m
spark.es.scroll.size: "50"
spark.es.resource: "spark/docs"
spark.es.resource.read: "spark/docs"
spark.es.resource.write: writestoday
spark.es.index.read.missing.as.empty: "true"
spark.es.query: "?q=costinl"
spark.es.nodes.wan.only: "true"
spark.es.index.auto.create: "true"
spark.es.net.ssl: "false"

Write is working perfectly.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.