# \[hadoop\] #\<CompilerException org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Invalid configuration - No read or write resource specified,

**URL:** <https://discuss.elastic.co/t/hadoop-compilerexception-org-elasticsearch-hadoop-eshadoopillegalargumentexception-invalid-configuration-no-read-or-write-resource-specified/20078>\
**Category:** Elasticsearch\
**Created:** [October 5, 2014, 1:58am UTC](https://discuss.elastic.co/t/hadoop-compilerexception-org-elasticsearch-hadoop-eshadoopillegalargumentexception-invalid-configuration-no-read-or-write-resource-specified/20078 "2014-10-05T01:58:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien\_Arnaud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastien_arnaud/32/1243_2.png) [@Sebastien\_Arnaud](https://discuss.elastic.co/u/Sebastien_Arnaud)\
**Post date:** [October 5, 2014, 1:58am UTC](https://discuss.elastic.co/t/hadoop-compilerexception-org-elasticsearch-hadoop-eshadoopillegalargumentexception-invalid-configuration-no-read-or-write-resource-specified/20078/1 "2014-10-05T01:58:16Z")

</div>

Hi,

I am trying to get a basic example with Apache Spark to read ES data into a  
RDD. However, I am getting the following error:

#\<CompilerException  
org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Invalid  
configuration - No read or write resource specified,

Any ideas? I am still not clear from the docs which params needs to be  
passed to SparkConf to specify ES params.

Thanks,

Sébastien Arnaud

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/535f25ae-88ef-413a-b196-7ec8ce340f65%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/535f25ae-88ef-413a-b196-7ec8ce340f65%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [October 5, 2014, 9:09am UTC](https://discuss.elastic.co/t/hadoop-compilerexception-org-elasticsearch-hadoop-eshadoopillegalargumentexception-invalid-configuration-no-read-or-write-resource-specified/20078/2 "2014-10-05T09:09:59Z")

</div>

I'm not sure where the "Compiler Exception" comes from but I assume you are using the Map/Reduce layer instead of the  
native integration with Spark.  
If that is the case, see this section of the documentation [1]. One needs to set up the "es.resource" parameter.

Feel free to post a gist/snippet of your example for diagnostics.

[1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/master/spark.html#_reading_data_from_elasticsearch_5)

On 10/5/14 4:58 AM, Sébastien Arnaud wrote:

> Hi,
> 
> I am trying to get a basic example with Apache Spark to read ES data into a RDD. However, I am getting the following error:
> 
> #\<CompilerException org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Invalid configuration - No read or write  
> resource specified,
> 
> Any ideas? I am still not clear from the docs which params needs to be passed to SparkConf to specify ES params.
> 
> Thanks,
> 
> Sébastien Arnaud
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/535f25ae-88ef-413a-b196-7ec8ce340f65%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/535f25ae-88ef-413a-b196-7ec8ce340f65%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/535f25ae-88ef-413a-b196-7ec8ce340f65%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/535f25ae-88ef-413a-b196-7ec8ce340f65%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).  
> --  
> Costin

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/54310AE7.70106%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/54310AE7.70106%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sebastien\_Arnaud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastien_arnaud/32/1243_2.png) [@Sebastien\_Arnaud](https://discuss.elastic.co/u/Sebastien_Arnaud)\
**Post date:** [October 5, 2014, 11:26pm UTC](https://discuss.elastic.co/t/hadoop-compilerexception-org-elasticsearch-hadoop-eshadoopillegalargumentexception-invalid-configuration-no-read-or-write-resource-specified/20078/3 "2014-10-05T23:26:40Z")

</div>

Thank you. It was what I was missing!

On Saturday, October 4, 2014 9:58:16 PM UTC-4, Sébastien Arnaud wrote:

> Hi,
> 
> I am trying to get a basic example with Apache Spark to read ES data into  
> a RDD. However, I am getting the following error:
> 
> #\<CompilerException  
> org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Invalid  
> configuration - No read or write resource specified,
> 
> Any ideas? I am still not clear from the docs which params needs to be  
> passed to SparkConf to specify ES params.
> 
> Thanks,
> 
> Sébastien Arnaud

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/813364df-fc37-4471-a7f7-e3869c917ec8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/813364df-fc37-4471-a7f7-e3869c917ec8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:58am UTC](https://discuss.elastic.co/t/hadoop-compilerexception-org-elasticsearch-hadoop-eshadoopillegalargumentexception-invalid-configuration-no-read-or-write-resource-specified/20078/4 "2017-07-06T00:58:12Z")

</div>


