# Python, Elasticsearch and Apache Spark, Simple data reading

**URL:** <https://discuss.elastic.co/t/python-elasticsearch-and-apache-spark-simple-data-reading/307715>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [June 21, 2022, 5:36am UTC](https://discuss.elastic.co/t/python-elasticsearch-and-apache-spark-simple-data-reading/307715 "2022-06-21T05:36:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [June 21, 2022, 1:14pm UTC](https://discuss.elastic.co/t/python-elasticsearch-and-apache-spark-simple-data-reading/307715/2 "2022-06-21T13:14:50Z")

</div>

Hi @Silver137. I think that the problem is a scala version compatibility issue. Unfortunately neither spark nor scala are usually compatible across versions. The version that ships in the big hadoop jar (elasticsearch-hadoop-8.2.2.jar) is for spark 2 / scala 2.11. Since you are using scala 2.13 and spark 3.3, you want to use the elasticsearch-spark-30\_2.13 artifact ([Maven Central Repository Search](https://search.maven.org/artifact/org.elasticsearch/elasticsearch-spark-30_2.13/8.2.2/jar)). You can read a little more about this at [Issue Using the Connector from PySpark in 7.17.3 - #3 by Keith\_Massey](https://discuss.elastic.co/t/issue-using-the-connector-from-pyspark-in-7-17-3/304084/3).

---

_[View the full topic](https://discuss.elastic.co/t/python-elasticsearch-and-apache-spark-simple-data-reading/307715)._
