# Unable to set discovery.zen.minimum\_master\_nodes from kibana?

**URL:** <https://discuss.elastic.co/t/unable-to-set-discovery-zen-minimum-master-nodes-from-kibana/56155>\
**Category:** Kibana\
**Created:** [July 22, 2016, 7:49am UTC](https://discuss.elastic.co/t/unable-to-set-discovery-zen-minimum-master-nodes-from-kibana/56155 "2016-07-22T07:49:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [July 22, 2016, 7:49am UTC](https://discuss.elastic.co/t/unable-to-set-discovery-zen-minimum-master-nodes-from-kibana/56155/1 "2016-07-22T07:49:34Z")

</div>

Hi!

I would like to ask question regarding to dyanamic setting in elasticsearch using cluster-update-api.

**Environment**  
elasticsearch ver 5.0.0 alpha4-1  
kibana ver 5.0.0 alpha4-1

Total of 4 nodes. (3 regular nodes and 1 client node)

```
[root@kibana ec2-user]# curl -XGET http://localhost:9200/_cat/health?v
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1469173492 16:44:52 elastic green 4 3 237 118 2 0 0 0 - 100.0%

[root@kibana ec2-user]# curl -XGET http://localhost:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
172.30.1.31 4 66 12 0.54 0.21 0.11 mdi - node-3
172.30.1.157 2 90 0 0.03 0.04 0.05 i - client-1
172.30.1.46 3 76 7 0.04 0.04 0.05 mdi - node-2
172.30.1.196 4 80 0 0.06 0.05 0.05 mdi * node-1

```

**Problem**  
discovery.zen.minimum\_master\_nodes is unable to update from kibana interface.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/e583307251cb0662c58038356e6d118023787a1e.PNG)

However, it works perfectly from the command line.  
Below is command executed from the client node

```
[root@kibana ec2-user]# curl -XPUT http://localhost:9200/_cluster/settings -d '{ "transient" : { "discovery.zen.minimum_master_nodes": 2 }}'
{"acknowledged":true,"persistent":{},"transient":{"discovery":{"zen":{"minimum_master_nodes":"2"}}}}[root@kibana ec2-user]#

```

**Question**  
Is this a problem? Or is it what it is?

Thanks,  
Yu Watanabe

---

<div class="post-metadata">

**Author:** ![jpcarey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpcarey/32/46668_2.png) [@jpcarey](https://discuss.elastic.co/u/jpcarey)\
**Post date:** [July 24, 2016, 3:31am UTC](https://discuss.elastic.co/t/unable-to-set-discovery-zen-minimum-master-nodes-from-kibana/56155/2 "2016-07-24T03:31:42Z")

</div>

You cropped off the connection URL for Kibana in your screenshot. What is the URL that you are sending the request to? What is the exact error that you are getting?

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [July 25, 2016, 2:51am UTC](https://discuss.elastic.co/t/unable-to-set-discovery-zen-minimum-master-nodes-from-kibana/56155/3 "2016-07-25T02:51:26Z")

</div>

Sorry for lack of information.  
The error I get is red cross on the left hand side and below error.

```
Expected one of GET/POST/PUT/DELETE/HEAD
Syntax error

```

 ![](https://us1.discourse-cdn.com/elastic/original/2X/a/aeba9f980b89e363bd3ff39af3bd688af8ef7035.PNG)

 ![](https://us1.discourse-cdn.com/elastic/original/2X/f/fcb9bfa93cf638c6dfdcc2b4bb033bffa3216c7e.PNG)

I had no error logs in my client, master , data nodes.

---

<div class="post-metadata">

**Author:** ![jpcarey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpcarey/32/46668_2.png) [@jpcarey](https://discuss.elastic.co/u/jpcarey)\
**Post date:** [July 25, 2016, 3:19am UTC](https://discuss.elastic.co/t/unable-to-set-discovery-zen-minimum-master-nodes-from-kibana/56155/4 "2016-07-25T03:19:58Z")

</div>

Ah. Just move the opening curly brace to a new line rather than having it on the request line.

```auto
PUT /_cluster/settings
{
  "transient" : {
    "discovery.zen.minimum_master_nodes" : 2
  }
}

```

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [July 25, 2016, 4:08am UTC](https://discuss.elastic.co/t/unable-to-set-discovery-zen-minimum-master-nodes-from-kibana/56155/5 "2016-07-25T04:08:43Z")

</div>

@jpcarey

Oh !

Thanks!

---

<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:44pm UTC](https://discuss.elastic.co/t/unable-to-set-discovery-zen-minimum-master-nodes-from-kibana/56155/6 "2017-07-06T13:44:27Z")

</div>


