# Loading data from elasticsearch to hadoop

**URL:** <https://discuss.elastic.co/t/loading-data-from-elasticsearch-to-hadoop/353817>\
**Category:** Elasticsearch\
**Created:** [February 21, 2024, 6:12pm UTC](https://discuss.elastic.co/t/loading-data-from-elasticsearch-to-hadoop/353817 "2024-02-21T18:12:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hussain\_Sain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hussain_sain/32/121853_2.png) [@Hussain\_Sain](https://discuss.elastic.co/u/Hussain_Sain)\
**Post date:** [February 21, 2024, 6:12pm UTC](https://discuss.elastic.co/t/loading-data-from-elasticsearch-to-hadoop/353817/1 "2024-02-21T18:12:30Z")

</div>

Hi,

we are using Elasticsearch 7.6.1 and CDH 6.2. we need to get data from elasticsearch to hive in CSV format but we dont know the way.  
any document which i go through have steps for loading data from hive to elaticsearch.  
as the data is on production we cant install any new tool. only tool we have is nifi but i dont know the exact configuration its required. we dont have any security restriction nor i have setup password for Elasticsearch.

please let me know how to load data from elasticsearch to hive on current date basis in csv format. its urgent i will really appreciate the effort.

thanks

---

<div class="post-metadata">

**Author:** ![Hussain\_Sain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hussain_sain/32/121853_2.png) [@Hussain\_Sain](https://discuss.elastic.co/u/Hussain_Sain)\
**Post date:** [February 22, 2024, 5:14am UTC](https://discuss.elastic.co/t/loading-data-from-elasticsearch-to-hadoop/353817/2 "2024-02-22T05:14:12Z")

</div>

could anyone help me please

---

<div class="post-metadata">

**Author:** ![Hussain\_Sain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hussain_sain/32/121853_2.png) [@Hussain\_Sain](https://discuss.elastic.co/u/Hussain_Sain)\
**Post date:** [February 23, 2024, 11:48am UTC](https://discuss.elastic.co/t/loading-data-from-elasticsearch-to-hadoop/353817/3 "2024-02-23T11:48:36Z")

</div>

i have used  
curl -o /tmp/data4.csv -XGET http://:9200//\_data?format=csv

i got the data but i am not getting total data for the index.  
secondly i dont know how to get data based on timestamp.  
i dont know how to get the data based on \_type:doc

please help in what to use in curl

---

<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:** [March 22, 2024, 11:49am UTC](https://discuss.elastic.co/t/loading-data-from-elasticsearch-to-hadoop/353817/4 "2024-03-22T11:49:05Z")

</div>

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