# Loading csv hdfs to ES

**URL:** <https://discuss.elastic.co/t/loading-csv-hdfs-to-es/184992>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [June 10, 2019, 1:04pm UTC](https://discuss.elastic.co/t/loading-csv-hdfs-to-es/184992 "2019-06-10T13:04:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [June 10, 2019, 1:04pm UTC](https://discuss.elastic.co/t/loading-csv-hdfs-to-es/184992/1 "2019-06-10T13:04:49Z")

</div>

I am trying to load cvs files that are in HDFS into ElasticSearch, can someone please guide me the best way to accomplish this task

hdfs cvs files: `/user/xxxxx/mpc.db/`  
ES: http:elasticsearch.pulse.prod:9200

---

<div class="post-metadata">

**Author:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [June 24, 2019, 2:56am UTC](https://discuss.elastic.co/t/loading-csv-hdfs-to-es/184992/2 "2019-06-24T02:56:04Z")

</div>

If you are already running a full Hadoop deployment (HDFS and Yarn) you could very easily load the CSV data into Elasticsearch using a simple Spark job

---

<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 22, 2019, 2:56am UTC](https://discuss.elastic.co/t/loading-csv-hdfs-to-es/184992/3 "2019-07-22T02:56:05Z")

</div>

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