# Elasticsearch-Pyspark Problem

**URL:** <https://discuss.elastic.co/t/elasticsearch-pyspark-problem/372495>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [December 27, 2024, 8:28pm UTC](https://discuss.elastic.co/t/elasticsearch-pyspark-problem/372495 "2024-12-27T20:28:18Z")\
**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:** [January 3, 2025, 4:34pm UTC](https://discuss.elastic.co/t/elasticsearch-pyspark-problem/372495/2 "2025-01-03T16:34:10Z")

</div>

Hi @tmslara.a. Sorry for the slow response, but I think you are probably right about the versioning error. Es-hadoop/spark packaging is a bit confusing. The `elasticsearch-hadoop-8.11.3.jar` contains a default version of es-spark that is probably not appropriate for your setup. You want to use `[elasticsearch-spark-30_2.13-8.11.3.jar](https://central.sonatype.com/artifact/org.elasticsearch/elasticsearch-spark-30_2.13/8.11.3)` if you are running scala 2.13, or `[elasticsearch-spark-30_2.12-8.11.3.jar](https://central.sonatype.com/artifact/org.elasticsearch/elasticsearch-spark-30_2.12/8.11.3)` if you are running scala 2.12.  
See [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) for an old post about this.

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-pyspark-problem/372495)._
