# Conector ElasticSearch-Hadood parameter es.resource of conf

**URL:** <https://discuss.elastic.co/t/conector-elasticsearch-hadood-parameter-es-resource-of-conf/28724>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [September 5, 2015, 7:16pm UTC](https://discuss.elastic.co/t/conector-elasticsearch-hadood-parameter-es-resource-of-conf/28724 "2015-09-05T19:16:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vidal](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@Vidal](https://discuss.elastic.co/u/Vidal)\
**Post date:** [September 5, 2015, 7:16pm UTC](https://discuss.elastic.co/t/conector-elasticsearch-hadood-parameter-es-resource-of-conf/28724/1 "2015-09-05T19:16:30Z")

</div>

Hi,

My doubt is about index/type in to es.resource parameter.

For example, I'm trying to read everything from ElasticSearch, but it is more than one index... so... How I can do this?

I`m try conf(es.resource, "\* / \* "); but it just takes the first.

So I try "logstash-\* / \*" (The data index that I'm interested in are like "logstash-date") and again, it just takes data the first index.

The output:

15/09/05 15:52:11 WARN rest.RestRepository: Read resource [logstash-\* / _] includes multiple indices or/and aliases; to avoid duplicate results (caused by shard overlapping), parallelism is reduced from 10 to 5  
15/09/05 15:52:11 INFO util.Version: Elasticsearch Hadoop v2.1.0 [76e51188cf]  
15/09/05 15:52:11 INFO mr.EsInputFormat: Reading from [logstash-_ / \*]  
15/09/05 15:52:11 INFO mr.EsInputFormat: Discovered mapping {logstash-2015.09.05=[mappings=[_default_=[@version=STRING, geoip=[location=GEO\_POINT]], auth-log=[@timestamp=DATE, @version=STRING, geoip=[location=GEO\_POINT], host=STRING, message=STRING, path=STRING, tags=STRING, type=STRING]]]} for [logstash-\* / \*]  
15/09/05 15:52:11 INFO mr.EsInputFormat: Created [5] shard-splits

Ps.: The caracters" \* / \* " are all together!!

Grateful for the attention,  
William Vidal

---

<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:** [September 5, 2015, 8:57pm UTC](https://discuss.elastic.co/t/conector-elasticsearch-hadood-parameter-es-resource-of-conf/28724/2 "2015-09-05T20:57:00Z")

</div>

How many indices do you have? Can you post the equivalent behaviour using curl?  
ES-Hadoop doesn't parse the regext itself but rather delegates to Elasticsearch - if only one index is returned, then likely that's the case.  
If you can double check that multiple indices are available and yet ES-Hadoop doesn't use them, please raise an issue in Github.

Thanks!

---

<div class="post-metadata">

**Author:** ![Vidal](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@Vidal](https://discuss.elastic.co/u/Vidal)\
**Post date:** [September 12, 2015, 5:57pm UTC](https://discuss.elastic.co/t/conector-elasticsearch-hadood-parameter-es-resource-of-conf/28724/3 "2015-09-12T17:57:56Z")

</div>

Thanks for the answer Costin!  
Now it's fine. Probably it was my mistake.

---

<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, 1:27pm UTC](https://discuss.elastic.co/t/conector-elasticsearch-hadood-parameter-es-resource-of-conf/28724/4 "2017-07-06T13:27:30Z")

</div>


