# Elasticsearch: simple cluster. Can't change nodes. Please, help

**URL:** https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995
**Category:** Elasticsearch
**Created:** [June 9, 2014, 2:41pm UTC](https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995 "2014-06-09T14:41:25Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Dmitriy\_Kargapolov](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dmitriy\_Kargapolov](https://discuss.elastic.co/u/Dmitriy_Kargapolov)
#### Post date: [June 9, 2014, 2:41pm UTC](https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995/1 "2014-06-09T14:41:25Z")

</div>

I have a simple cluster with 2 nodes: master/data and data. I need to move  
master data to another server. I tried to change master to data and data to  
master, also made 3 node master. But always I had one result. Status of  
cluster was green and I all shards were 0, but in home directory I had all  
data. What should I do to solve this problem?

--  
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/7f3e78dd-ce57-4509-8b1c-3c8624690bea%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7f3e78dd-ce57-4509-8b1c-3c8624690bea%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![sirkubax](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sirkubax](https://discuss.elastic.co/u/sirkubax)
#### Post date: [June 9, 2014, 2:51pm UTC](https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995/2 "2014-06-09T14:51:56Z")

</div>

What this commnad show

curl -XGET '[http://localhost:9200/\_nodes/\_all/process?pretty=true](http://localhost:9200/_nodes/_all/process?pretty=true)' |less

W dniu poniedziałek, 9 czerwca 2014 16:41:25 UTC+2 użytkownik Dmitriy  
Kargapolov napisał:

> I have a simple cluster with 2 nodes: master/data and data. I need to move  
> master data to another server. I tried to change master to data and data to  
> master, also made 3 node master. But always I had one result. Status of  
> cluster was green and I all shards were 0, but in home directory I had all  
> data. What should I do to solve this problem?

--  
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/276abfa2-450a-4e38-b552-faf044651456%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/276abfa2-450a-4e38-b552-faf044651456%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Dmitriy\_Kargapolov](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dmitriy\_Kargapolov](https://discuss.elastic.co/u/Dmitriy_Kargapolov)
#### Post date: [June 10, 2014, 5:08am UTC](https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995/3 "2014-06-10T05:08:16Z")

</div>

This command show:

C:\Program Files\Elasticsearch\bin\>curl -XGET  
"[http://localhost:9204/\_nodes/\_all/process?pretty=true](http://localhost:9204/_nodes/_all/process?pretty=true)"  
{  
"ok" : true,  
"cluster\_name" : "mycluster",  
"nodes" : {  
"RTlR2GvATs-jqYSRQ5c6bg" : {  
"name" : "node4",  
"transport\_address" : "inet[/192.168.0.89:9304]",  
"hostname" : "V04",  
"version" : "0.90.12",  
"http\_address" : "inet[/192.168.0.89:9204]",  
"attributes" : {  
"master" : "false"  
},  
"process" : {  
"refresh\_interval" : 1000,  
"id" : 3420,  
"max\_file\_descriptors" : -1,  
"mlockall" : false  
}  
},  
"BA2wkXmKTAqQlaULydDjuA" : {  
"name" : "node3",  
"transport\_address" : "inet[/192.168.0.173:9300]",  
"hostname" : "V03",  
"version" : "0.90.12",  
"http\_address" : "inet[/192.168.0.173:9200]",  
"attributes" : {  
"master" : "true"  
},  
"process" : {  
"refresh\_interval" : 1000,  
"id" : 1148,  
"max\_file\_descriptors" : -1,  
"mlockall" : false  
}  
}  
}  
}

On Mon, Jun 9, 2014 at 5:51 PM, sirkubax [jakubxmuszynski@googlemail.com](mailto:jakubxmuszynski@googlemail.com) wrote:

> What this commnad show
> 
> curl -XGET '[http://localhost:9200/\_nodes/\_all/process?pretty=true](http://localhost:9200/_nodes/_all/process?pretty=true)' |less
> 
> W dniu poniedziałek, 9 czerwca 2014 16:41:25 UTC+2 użytkownik Dmitriy  
> Kargapolov napisał:
> 
> > I have a simple cluster with 2 nodes: master/data and data. I need to move  
> > master data to another server. I tried to change master to data and data to  
> > master, also made 3 node master. But always I had one result. Status of  
> > cluster was green and I all shards were 0, but in home directory I had all  
> > data. What should I do to solve this problem?
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/mBzkcuJq5t0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/mBzkcuJq5t0/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/276abfa2-450a-4e38-b552-faf044651456%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/276abfa2-450a-4e38-b552-faf044651456%40googlegroups.com).
> 
> 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/CAJBXYCkp9D8%3D555-y-Jb6WoG1o6Y70TfH%2B8fmFbdmOTQ3kAOFg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJBXYCkp9D8%3D555-y-Jb6WoG1o6Y70TfH%2B8fmFbdmOTQ3kAOFg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![sirkubax](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sirkubax](https://discuss.elastic.co/u/sirkubax)
#### Post date: [June 10, 2014, 8:44am UTC](https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995/4 "2014-06-10T08:44:16Z")

</div>

Try add "  
"data" : "false"  
to the node that you would like to remove data (you are trying to move from  
node4 -\> node3 right?).  
I'm not sure, but when operation succeed, data will be copied to node3,  
_but_ it _as far as I know_ dhe data will stay on node, To be sure compare  
folder size, and if correct, remove them manually.

The setting:  
{  
"ok" : true,  
"cluster\_name" : "mycluster",  
"nodes" : {  
"RTlR2GvATs-jqYSRQ5c6bg" : {  
"name" : "node4",  
"transport\_address" : "inet[/192.168.0.89:9304]",  
"hostname" : "V04",  
"version" : "0.90.12",  
"http\_address" : "inet[/192.168.0.89:9204]",  
"attributes" : {  
"master" : "false"

- 

```
   "data" : "false"*
}, 
"process" : { 
  "refresh_interval" : 1000, 
  "id" : 3420, 
  "max_file_descriptors" : -1, 
  "mlockall" : false 
} 

```

},  
"BA2wkXmKTAqQlaULydDjuA" : {  
"name" : "node3",  
"transport\_address" : "inet[/192.168.0.173:9300]",  
"hostname" : "V03",  
"version" : "0.90.12",  
"http\_address" : "inet[/192.168.0.173:9200]",  
"attributes" : {  
"master" : "true"  
},  
"process" : {  
"refresh\_interval" : 1000,  
"id" : 1148,  
"max\_file\_descriptors" : -1,  
"mlockall" : false  
}  
}  
}  
}

_Actually_

curl localhost:9200/\_settings?pretty |less

{  
"logstash-2014.05.09" : {  
"settings" : {  
"index" : {  
"uuid" : "D3C5kDoVRUShZbxHsY9i9A",  
"analysis" : {  
"analyzer" : {  
"default" : {  
"type" : "standard",  
"stopwords" : "_none_"  
}  
}  
},  
_"number\_of\_replicas" : "1",_  
"number\_of\_shards" : "5",  
"refresh\_interval" : "5s",  
"version" : {  
"created" : "1000199"  
}  
}  
}  
},

_If you have your replica configured, it should copy to second node itself._

--  
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/b9828828-7538-47da-a09c-a3cb732607d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b9828828-7538-47da-a09c-a3cb732607d3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![sirkubax](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sirkubax](https://discuss.elastic.co/u/sirkubax)
#### Post date: [June 10, 2014, 8:45am UTC](https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995/5 "2014-06-10T08:45:36Z")

</div>

_Try add ""data" : "false"_

You can do it in you elasticserh.yml

# You can exploit these settings to design advanced cluster topologies.

# 

# 1. You want this node to never become a master node, only to hold data.

# This will be the "workhorse" of your cluster.

# 

# node.master: false

# node.data: true

# 

# 2. You want this node to only serve as a master: to not store any data and

# to have free resources. This will be the "coordinator" of your cluster.

# 

# node.master: true

# node.data: false

# 

# 3. You want this node to be neither master nor data node, but

# to act as a "search load balancer" (fetching data from nodes,

# aggregating results, etc.)

# 

node.master: false  
node.data: false

--  
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/dcf61ee3-4589-4841-993a-9f032b4b095c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dcf61ee3-4589-4841-993a-9f032b4b095c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Dmitriy\_Kargapolov](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dmitriy\_Kargapolov](https://discuss.elastic.co/u/Dmitriy_Kargapolov)
#### Post date: [June 11, 2014, 8:54am UTC](https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995/6 "2014-06-11T08:54:58Z")

</div>

Thanks for answering me. But all works now! I made all necessary  
operations very slowly and carefully with full restart of servers. And  
all work properly. I am really don't understand what the matter was.  
Maybe I should to restart some service or process besides  
elasticsearch service to make changes. I don't know.

On Tue, Jun 10, 2014 at 11:45 AM, sirkubax  
[jakubxmuszynski@googlemail.com](mailto:jakubxmuszynski@googlemail.com) wrote:

> Try add "  
> "data" : "false"
> 
> You can do it in you elasticserh.yml
> 
> # You can exploit these settings to design advanced cluster topologies.
> 
> # 
> 
> # 1. You want this node to never become a master node, only to hold data.
> 
> # This will be the "workhorse" of your cluster.
> 
> # 
> 
> # node.master: false
> 
> # node.data: true
> 
> # 
> 
> # 2. You want this node to only serve as a master: to not store any data and
> 
> # to have free resources. This will be the "coordinator" of your cluster.
> 
> # 
> 
> # node.master: true
> 
> # node.data: false
> 
> # 
> 
> # 3. You want this node to be neither master nor data node, but
> 
> # to act as a "search load balancer" (fetching data from nodes,
> 
> # aggregating results, etc.)
> 
> # 
> 
> node.master: false  
> node.data: false
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/mBzkcuJq5t0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/mBzkcuJq5t0/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/dcf61ee3-4589-4841-993a-9f032b4b095c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dcf61ee3-4589-4841-993a-9f032b4b095c%40googlegroups.com).
> 
> 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/CAJBXYCkpuqwWXgMOe6jzg7yDgSFYe8Whx2xVNp3a3t8Gam%2Bkhg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJBXYCkpuqwWXgMOe6jzg7yDgSFYe8Whx2xVNp3a3t8Gam%2Bkhg%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, 1:23am UTC](https://discuss.elastic.co/t/elasticsearch-simple-cluster-cant-change-nodes-please-help/17995/7 "2017-07-06T01:23:24Z")

</div>


