# Query in hdfs files from elasticsearch

**URL:** <https://discuss.elastic.co/t/query-in-hdfs-files-from-elasticsearch/198922>\
**Category:** Elasticsearch\
**Created:** [September 10, 2019, 3:08pm UTC](https://discuss.elastic.co/t/query-in-hdfs-files-from-elasticsearch/198922 "2019-09-10T15:08:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lusine\_Hayrapetyan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusine_hayrapetyan/32/53933_2.png) [@Lusine\_Hayrapetyan](https://discuss.elastic.co/u/Lusine_Hayrapetyan)\
**Post date:** [September 10, 2019, 3:08pm UTC](https://discuss.elastic.co/t/query-in-hdfs-files-from-elasticsearch/198922/1 "2019-09-10T15:08:10Z")

</div>

Hi, I have json files in hdfs.  
And I have elastic search, also installed elasticsearch-hadoop-7.3.1.jar and added it to classpath.  
Now I want do interactive quires with elasticsearch in json files which are in hdfs.  
How to create an index in elasticsearch from hdfs files? Or maybe there is another way to do this?

---

<div class="post-metadata">

**Author:** ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)\
**Post date:** [September 10, 2019, 4:47pm UTC](https://discuss.elastic.co/t/query-in-hdfs-files-from-elasticsearch/198922/2 "2019-09-10T16:47:09Z")

</div>

Es doesn't support query data in hdfs. you should find a way to load data from hdfs to Es, then make an interacive query.

---

<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 8, 2019, 4:47pm UTC](https://discuss.elastic.co/t/query-in-hdfs-files-from-elasticsearch/198922/3 "2019-10-08T16:47:09Z")

</div>

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