# Migrate data from ES 1.x to ES 2.x

**URL:** <https://discuss.elastic.co/t/migrate-data-from-es-1-x-to-es-2-x/57094>\
**Category:** Elasticsearch\
**Created:** [August 3, 2016, 10:59am UTC](https://discuss.elastic.co/t/migrate-data-from-es-1-x-to-es-2-x/57094 "2016-08-03T10:59:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ultimate.duwal](https://avatars.discourse-cdn.com/v4/letter/u/2acd7d/32.png) [@ultimate.duwal](https://discuss.elastic.co/u/ultimate.duwal)\
**Post date:** [August 3, 2016, 10:59am UTC](https://discuss.elastic.co/t/migrate-data-from-es-1-x-to-es-2-x/57094/1 "2016-08-03T10:59:56Z")

</div>

Hello all,

I have been working in upgrading my ES 1.x to 2.x recently. I have upgraded my codes from 1.x JAVA API to 2.x JAVA API. Now I am migrating my data from ES 1.x cluster to 2.x cluster.  
For this purpose I have few solutions, make the mapping for ES 1.x compatible with 2.x and then move data to cluster with ES 2.x.

But I want to do is, use BulkProcessor API so that I can index selective data from ES 1.x to ES 2.x.  
How can I do this ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 3, 2016, 11:20am UTC](https://discuss.elastic.co/t/migrate-data-from-es-1-x-to-es-2-x/57094/2 "2016-08-03T11:20:25Z")

</div>

You can't use the same transport client to connect to 2 clusters running version 1 and version 2.

---

<div class="post-metadata">

**Author:** ![ultimate.duwal](https://avatars.discourse-cdn.com/v4/letter/u/2acd7d/32.png) [@ultimate.duwal](https://discuss.elastic.co/u/ultimate.duwal)\
**Post date:** [August 4, 2016, 5:41am UTC](https://discuss.elastic.co/t/migrate-data-from-es-1-x-to-es-2-x/57094/3 "2016-08-04T05:41:26Z")

</div>

Thank you for your reply but I am aware of this. Are there any ways to accomplish what I have discussed above?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 4, 2016, 7:01am UTC](https://discuss.elastic.co/t/migrate-data-from-es-1-x-to-es-2-x/57094/4 "2016-08-04T07:01:22Z")

</div>

Not with a BulkProcessor API which was your question.

If you want to copy data from a cluster to another one, that's another question.

This could work may be: [http://david.pilato.fr/blog/2015/05/20/reindex-elasticsearch-with-logstash/](http://david.pilato.fr/blog/2015/05/20/reindex-elasticsearch-with-logstash/)

---

<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 5, 2017, 10:30pm UTC](https://discuss.elastic.co/t/migrate-data-from-es-1-x-to-es-2-x/57094/5 "2017-07-05T22:30:13Z")

</div>


