# ElasticSearch --\>\> spark streaming --\> elasticsearch

**URL:** <https://discuss.elastic.co/t/elasticsearch-spark-streaming-elasticsearch/144127>\
**Category:** Elasticsearch\
**Created:** [August 13, 2018, 9:21am UTC](https://discuss.elastic.co/t/elasticsearch-spark-streaming-elasticsearch/144127 "2018-08-13T09:21:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheryl](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@sheryl](https://discuss.elastic.co/u/sheryl)\
**Post date:** [August 13, 2018, 9:21am UTC](https://discuss.elastic.co/t/elasticsearch-spark-streaming-elasticsearch/144127/1 "2018-08-13T09:21:13Z")

</div>

How to fetch csv file from elastic search and do spark streaming and put the result back to elastic search ?

how to do ?

---

<div class="post-metadata">

**Author:** ![Peter\_Steenbergen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peter_steenbergen/32/22888_2.png) [@Peter\_Steenbergen](https://discuss.elastic.co/u/Peter_Steenbergen)\
**Post date:** [August 13, 2018, 8:16pm UTC](https://discuss.elastic.co/t/elasticsearch-spark-streaming-elasticsearch/144127/2 "2018-08-13T20:16:27Z")

</div>

That is a very broad question 😉

Maybe cut it into pieces and start with the Ealsticsearch exporting to csv.  
An example for it: [https://github.com/taraslayshchuk/es2csv](https://github.com/taraslayshchuk/es2csv).

---

<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:** [September 10, 2018, 8:16pm UTC](https://discuss.elastic.co/t/elasticsearch-spark-streaming-elasticsearch/144127/3 "2018-09-10T20:16:34Z")

</div>

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