# ES2Hadoop and Hadoop2ES

**URL:** <https://discuss.elastic.co/t/es2hadoop-and-hadoop2es/22530>\
**Category:** Elasticsearch\
**Created:** [March 5, 2015, 3:44pm UTC](https://discuss.elastic.co/t/es2hadoop-and-hadoop2es/22530 "2015-03-05T15:44:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![philg](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@philg](https://discuss.elastic.co/u/philg)\
**Post date:** [March 5, 2015, 3:44pm UTC](https://discuss.elastic.co/t/es2hadoop-and-hadoop2es/22530/1 "2015-03-05T15:44:04Z")

</div>

Hello,

My SW context : 5 nodes running ES 1.4 + 1 node running ES 1.3

i need to read node ES 1.4 ( One index + all data indexed) and write it  
to nodeES 1.3 .  
i have a java code that do the job but it firstly writes to HDFS and then  
i need a second job  
that read HDFS and send to ES 1.3

i was wondering if iit was possible to do all in one without storing on  
HDFS  
by interfacing both in the same job and java code  
ES doc mentions ( but within the same job) :

es.resource.read (defaults to es.resource) Elasticsearch resource used for  
reading (but not writing) data. Useful when reading and writing data to  
different Elasticsearch indices within the _same_ job.  
es.resource.write

PS: i tried without success the backup/restore possibility from ES

Best R  
Phil

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1e3f6b01-0f9c-480e-8b87-6d509e2a9ba0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1e3f6b01-0f9c-480e-8b87-6d509e2a9ba0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 5, 2015, 9:58pm UTC](https://discuss.elastic.co/t/es2hadoop-and-hadoop2es/22530/2 "2015-03-05T21:58:46Z")

</div>

No, you cannot do it in a single job.

On 6 March 2015 at 02:44, Phil gib [philgib37@gmail.com](mailto:philgib37@gmail.com) wrote:

> Hello,
> 
> My SW context : 5 nodes running ES 1.4 + 1 node running ES 1.3
> 
> i need to read node ES 1.4 ( One index + all data indexed) and write  
> it to nodeES 1.3 .  
> i have a java code that do the job but it firstly writes to HDFS and then  
> i need a second job  
> that read HDFS and send to ES 1.3
> 
> i was wondering if iit was possible to do all in one without storing on  
> HDFS  
> by interfacing both in the same job and java code  
> ES doc mentions ( but within the same job) :
> 
> es.resource.read (defaults to es.resource) Elasticsearch resource used  
> for reading (but not writing) data. Useful when reading and writing data to  
> different Elasticsearch indices within the _same_ job.  
> es.resource.write
> 
> PS: i tried without success the backup/restore possibility from ES
> 
> Best R  
> Phil
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/1e3f6b01-0f9c-480e-8b87-6d509e2a9ba0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1e3f6b01-0f9c-480e-8b87-6d509e2a9ba0%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/1e3f6b01-0f9c-480e-8b87-6d509e2a9ba0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1e3f6b01-0f9c-480e-8b87-6d509e2a9ba0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8fpZyAJuZm0VMFDjEnmp9%3DK5r8Y2j-xoTue%2BHL49aW-A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8fpZyAJuZm0VMFDjEnmp9%3DK5r8Y2j-xoTue%2BHL49aW-A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:28am UTC](https://discuss.elastic.co/t/es2hadoop-and-hadoop2es/22530/3 "2017-07-06T00:28:14Z")

</div>

Closed on July 6, 2017, 12:28am UTC


