# Elasticsearch support for spark 2.4.2 with scala 2.12

**URL:** <https://discuss.elastic.co/t/elasticsearch-support-for-spark-2-4-2-with-scala-2-12/197810>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [September 3, 2019, 9:55am UTC](https://discuss.elastic.co/t/elasticsearch-support-for-spark-2-4-2-with-scala-2-12/197810 "2019-09-03T09:55:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gokul\_Raj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gokul_raj/32/48717_2.png) [@Gokul\_Raj](https://discuss.elastic.co/u/Gokul_Raj)\
**Post date:** [September 3, 2019, 9:55am UTC](https://discuss.elastic.co/t/elasticsearch-support-for-spark-2-4-2-with-scala-2-12/197810/1 "2019-09-03T09:55:31Z")

</div>

I'm not able to find any ES 6.7.1 supporting jar for spark 2.4.2 with scala 2.12  
In maven repo only scala 2.11 and 2.10 is supported for the jar

```auto
<dependency>
    <groupId>org.elasticsearch</groupId>
    <artifactId>elasticsearch-spark-20_2.11</artifactId>
    <version>6.7.1</version>
</dependency>

```

For my application we are using spark 2.4.2 which supports only scala 2.12 version.

Following is the error shown when I try to run with "elasticsearch-spark-20\_2.11" jar

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/2/4227da1e8c424ea5595acdd814e5156d6ae6435e.png)

Is there any alternative to resolve this situation as downgrade is not an option?  
o

---

<div class="post-metadata">

**Author:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [September 6, 2019, 4:25pm UTC](https://discuss.elastic.co/t/elasticsearch-support-for-spark-2-4-2-with-scala-2-12/197810/2 "2019-09-06T16:25:18Z")

</div>

There is an [open issue](https://github.com/elastic/elasticsearch-hadoop/pull/1308) to increase the Spark support to cover these versions. Unfortunately, until the testing is completed for the process, there is no support for Scala 2.12.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 4, 2019, 4:27pm UTC](https://discuss.elastic.co/t/elasticsearch-support-for-spark-2-4-2-with-scala-2-12/197810/3 "2019-10-04T16:27:44Z")

</div>

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