# How to merge 2 clusters

**URL:** https://discuss.elastic.co/t/how-to-merge-2-clusters/6664
**Category:** Elasticsearch
**Created:** [February 9, 2012, 8:59pm UTC](https://discuss.elastic.co/t/how-to-merge-2-clusters/6664 "2012-02-09T20:59:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_H](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@Chris\_H](https://discuss.elastic.co/u/Chris_H)
#### Post date: [February 9, 2012, 8:59pm UTC](https://discuss.elastic.co/t/how-to-merge-2-clusters/6664/1 "2012-02-09T20:59:45Z")

</div>

I have ElasticSearch cluster where one of the nodes that was added to  
the replica-set was already running ES under a different cluster  
name. I need to merge this data into the current running replica-  
set. How do I do this?

Thanks,

Chris

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [February 12, 2012, 11:30am UTC](https://discuss.elastic.co/t/how-to-merge-2-clusters/6664/2 "2012-02-12T11:30:01Z")

</div>

You need to first read the data from that single node (using the API) and index it into the other cluster. Then, clean the data from that node (simply rm it), and start the node to join the other cluster.

On Thursday, February 9, 2012 at 10:59 PM, Chris H. wrote:

> I have Elasticsearch cluster where one of the nodes that was added to  
> the replica-set was already running ES under a different cluster  
> name. I need to merge this data into the current running replica-  
> set. How do I do this?
> 
> Thanks,
> 
> Chris

---

<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, 3:39am UTC](https://discuss.elastic.co/t/how-to-merge-2-clusters/6664/3 "2017-07-06T03:39:49Z")

</div>


