# ServiceConfigurationError: org.apache.spark.sql.sources.DataSourceRegister: Provider org.elasticsearch.spark.sql.DefaultSource15 could not be instantiated

**URL:** <https://discuss.elastic.co/t/serviceconfigurationerror-org-apache-spark-sql-sources-datasourceregister-provider-org-elasticsearch-spark-sql-defaultsource15-could-not-be-instantiated/232933>\
**Category:** Elasticsearch\
**Created:** [May 16, 2020, 2:17pm UTC](https://discuss.elastic.co/t/serviceconfigurationerror-org-apache-spark-sql-sources-datasourceregister-provider-org-elasticsearch-spark-sql-defaultsource15-could-not-be-instantiated/232933 "2020-05-16T14:17:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adi\_Ti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adi_ti/32/51488_2.png) [@Adi\_Ti](https://discuss.elastic.co/u/Adi_Ti)\
**Post date:** [May 16, 2020, 2:17pm UTC](https://discuss.elastic.co/t/serviceconfigurationerror-org-apache-spark-sql-sources-datasourceregister-provider-org-elasticsearch-spark-sql-defaultsource15-could-not-be-instantiated/232933/1 "2020-05-16T14:17:04Z")

</div>

I am trying to index using spark on Amazon EMR cluster. I am facing this issue on the cluster.

pom.xml for Elastic  
  
org.elasticsearch  
elasticsearch  
6.4.3  
  
  
org.slf4j  
slf4j-log4j12  
  
  
log4j  
log4j

```
    <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch-spark-20_2.11</artifactId>
        <version>7.6.0</version>
        <exclusions>
            <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
            </exclusion>
            <exclusion>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

```

 org.apache.spark spark-core\_2.11 2.4.4 org.slf4j slf4j-log4j12 log4j log4j org.apache.spark spark-sql\_2.11 2.4.4 org.slf4j slf4j-log4j12 log4j log4j 

```
    </dependency>
```

---

<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:** [June 13, 2020, 2:17pm UTC](https://discuss.elastic.co/t/serviceconfigurationerror-org-apache-spark-sql-sources-datasourceregister-provider-org-elasticsearch-spark-sql-defaultsource15-could-not-be-instantiated/232933/2 "2020-06-13T14:17:14Z")

</div>

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