# EsHadoopInvalidRequest - error while getting data from ES

**URL:** <https://discuss.elastic.co/t/eshadoopinvalidrequest-error-while-getting-data-from-es/88377>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [June 6, 2017, 8:51am UTC](https://discuss.elastic.co/t/eshadoopinvalidrequest-error-while-getting-data-from-es/88377 "2017-06-06T08:51:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poohowy](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@Poohowy](https://discuss.elastic.co/u/Poohowy)\
**Post date:** [June 6, 2017, 8:51am UTC](https://discuss.elastic.co/t/eshadoopinvalidrequest-error-while-getting-data-from-es/88377/1 "2017-06-06T08:51:53Z")

</div>

Hi. I have a problem with getting data from elasticsearch, but I have no idea what is the reason. This is error from logfile:

```
17/06/06 03:00:10 ERROR ApplicationMaster: User class threw exception: org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: [GET] on [data_abc_20170508/data/_search] failed; server[localhost:9200] returned [503|Service Unavailable:]
org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: [GET] on [data_abc_20170508/data/_search] failed; server[localhost:9200] returned [503|Service Unavailable:]

```

Index "data\_abc\_20170508" exists. Maybe the reason is that I do a snapshot of index (and save data to HDFS), but it is not index "data\_abc\_20170508". Does anyone know this issue and can give me advice what is the reason?

**EDIT**  
Ok, I think I know what is the reason. To do snapshot I have to open index which was closed. While I open old index my search on "data\_abc\_\*" give me this error, because shards are not allocated yet for old index.

Is it possible to open old index (for example "data\_abc\_20170501") and search "data\_abc\_\*" at the same time?

---

<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 4, 2017, 8:52am UTC](https://discuss.elastic.co/t/eshadoopinvalidrequest-error-while-getting-data-from-es/88377/2 "2017-07-04T08:52:27Z")

</div>

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