# How to update cluster setting?

**URL:** <https://discuss.elastic.co/t/how-to-update-cluster-setting/9747>\
**Category:** Elasticsearch\
**Created:** [November 16, 2012, 11:54pm UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747 "2012-11-16T23:54:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [November 16, 2012, 11:54pm UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/1 "2012-11-16T23:54:07Z")

</div>

I am seeing the following error:

{"error":"ActionRequestValidationException[Validation Failed: 1: no  
settings to update;]","status":500}

I think that this is because

```
@Override
public ActionRequestValidationException validate() {
    ActionRequestValidationException validationException = null;
    if (transientSettings.getAsMap().isEmpty() && 

```

persistentSettings.getAsMap().isEmpty()) {  
validationException = addValidationError("no settings to  
update", validationException);  
}  
return validationException;  
}

Is this know bug? Is there anybody who didn't have this problem yet?

Thank you  
Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 17, 2012, 12:26am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/2 "2012-11-17T00:26:00Z")

</div>

That might simply indicate that your update command doesn't contain any  
updatable settings. How does it look like? Does it contain "persistent" or  
"transient" objects?

On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:

> I am seeing the following error:
> 
> {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> settings to update;]","status":500}
> 
> I think that this is because
> 
> ```
> @Override
> public ActionRequestValidationException validate() {
> ActionRequestValidationException validationException = null;
> if (transientSettings.getAsMap().isEmpty() && 
> 
> ```
> 
> persistentSettings.getAsMap().isEmpty()) {  
> validationException = addValidationError("no settings to  
> update", validationException);  
> }  
> return validationException;  
> }
> 
> Is this know bug? Is there anybody who didn't have this problem yet?
> 
> Thank you  
> Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [November 17, 2012, 12:30am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/3 "2012-11-17T00:30:47Z")

</div>

I can see the empty persistent and transient objects with "curl  
localhost:7104/\_cluster/settings" but how can I add updatable settings?

Thank you  
Best, Jae

On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:

> That might simply indicate that your update command doesn't contain any  
> updatable settings. How does it look like? Does it contain "persistent" or  
> "transient" objects?
> 
> On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> 
> > I am seeing the following error:
> > 
> > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > settings to update;]","status":500}
> > 
> > I think that this is because
> > 
> > ```
> > @Override
> > public ActionRequestValidationException validate() {
> > ActionRequestValidationException validationException = null;
> > if (transientSettings.getAsMap().isEmpty() && 
> > 
> > ```
> > 
> > persistentSettings.getAsMap().isEmpty()) {  
> > validationException = addValidationError("no settings to  
> > update", validationException);  
> > }  
> > return validationException;  
> > }
> > 
> > Is this know bug? Is there anybody who didn't have this problem yet?
> > 
> > Thank you  
> > Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 17, 2012, 12:41am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/4 "2012-11-17T00:41:51Z")

</div>

There are some examples and list of settings that you can update on this  
page:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Friday, November 16, 2012 7:30:47 PM UTC-5, Jae wrote:

> I can see the empty persistent and transient objects with "curl  
> localhost:7104/\_cluster/settings" but how can I add updatable settings?
> 
> Thank you  
> Best, Jae
> 
> On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:
> 
> > That might simply indicate that your update command doesn't contain any  
> > updatable settings. How does it look like? Does it contain "persistent" or  
> > "transient" objects?
> > 
> > On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> > 
> > > I am seeing the following error:
> > > 
> > > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > > settings to update;]","status":500}
> > > 
> > > I think that this is because
> > > 
> > > ```
> > > @Override
> > > public ActionRequestValidationException validate() {
> > > ActionRequestValidationException validationException = null;
> > > if (transientSettings.getAsMap().isEmpty() && 
> > > 
> > > ```
> > > 
> > > persistentSettings.getAsMap().isEmpty()) {  
> > > validationException = addValidationError("no settings to  
> > > update", validationException);  
> > > }  
> > > return validationException;  
> > > }
> > > 
> > > Is this know bug? Is there anybody who didn't have this problem yet?
> > > 
> > > Thank you  
> > > Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [November 17, 2012, 12:48am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/5 "2012-11-17T00:48:14Z")

</div>

I tried to update

"persistent": {  
"indices.store.throttle.type": "merge",  
"indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
}

These setting should be able to be updated according to the guide page.

On Friday, November 16, 2012 4:41:51 PM UTC-8, Igor Motov wrote:

> There are some examples and list of settings that you can update on this  
> page:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html)
> 
> On Friday, November 16, 2012 7:30:47 PM UTC-5, Jae wrote:
> 
> > I can see the empty persistent and transient objects with "curl  
> > localhost:7104/\_cluster/settings" but how can I add updatable settings?
> > 
> > Thank you  
> > Best, Jae
> > 
> > On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:
> > 
> > > That might simply indicate that your update command doesn't contain any  
> > > updatable settings. How does it look like? Does it contain "persistent" or  
> > > "transient" objects?
> > > 
> > > On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> > > 
> > > > I am seeing the following error:
> > > > 
> > > > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > > > settings to update;]","status":500}
> > > > 
> > > > I think that this is because
> > > > 
> > > > ```
> > > > @Override
> > > > public ActionRequestValidationException validate() {
> > > > ActionRequestValidationException validationException = null;
> > > > if (transientSettings.getAsMap().isEmpty() && 
> > > > 
> > > > ```
> > > > 
> > > > persistentSettings.getAsMap().isEmpty()) {  
> > > > validationException = addValidationError("no settings to  
> > > > update", validationException);  
> > > > }  
> > > > return validationException;  
> > > > }
> > > > 
> > > > Is this know bug? Is there anybody who didn't have this problem yet?
> > > > 
> > > > Thank you  
> > > > Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 17, 2012, 12:56am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/6 "2012-11-17T00:56:24Z")

</div>

Did you run it like this?

curl -XPUT localhost:9200/\_cluster/settings -d '{  
"persistent": {  
"indices.store.throttle.type": "merge",  
"indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
}  
}'

Which version of elasticsearch are you using?

On Friday, November 16, 2012 7:48:14 PM UTC-5, Jae wrote:

> I tried to update
> 
> "persistent": {  
> "indices.store.throttle.type": "merge",  
> "indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
> }
> 
> These setting should be able to be updated according to the guide page.
> 
> On Friday, November 16, 2012 4:41:51 PM UTC-8, Igor Motov wrote:
> 
> > There are some examples and list of settings that you can update on this  
> > page:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html)
> > 
> > On Friday, November 16, 2012 7:30:47 PM UTC-5, Jae wrote:
> > 
> > > I can see the empty persistent and transient objects with "curl  
> > > localhost:7104/\_cluster/settings" but how can I add updatable settings?
> > > 
> > > Thank you  
> > > Best, Jae
> > > 
> > > On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:
> > > 
> > > > That might simply indicate that your update command doesn't contain any  
> > > > updatable settings. How does it look like? Does it contain "persistent" or  
> > > > "transient" objects?
> > > > 
> > > > On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> > > > 
> > > > > I am seeing the following error:
> > > > > 
> > > > > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > > > > settings to update;]","status":500}
> > > > > 
> > > > > I think that this is because
> > > > > 
> > > > > ```
> > > > > @Override
> > > > > public ActionRequestValidationException validate() {
> > > > > ActionRequestValidationException validationException = null;
> > > > > if (transientSettings.getAsMap().isEmpty() && 
> > > > > 
> > > > > ```
> > > > > 
> > > > > persistentSettings.getAsMap().isEmpty()) {  
> > > > > validationException = addValidationError("no settings to  
> > > > > update", validationException);  
> > > > > }  
> > > > > return validationException;  
> > > > > }
> > > > > 
> > > > > Is this know bug? Is there anybody who didn't have this problem yet?
> > > > > 
> > > > > Thank you  
> > > > > Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [November 17, 2012, 12:59am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/7 "2012-11-17T00:59:58Z")

</div>

Every setting I tried is throwing the same error message. I think that I  
should see the full list of cluster wide settings with 'curl -XGET  
[http://localhost:7104/\_cluster/settings](http://localhost:7104/_cluster/settings)' but I am seeing empty persistent  
and transient settings like

{"persistent":{},"transient":{}}

What did I do wrong?

On Friday, November 16, 2012 4:48:14 PM UTC-8, Jae wrote:

> I tried to update
> 
> "persistent": {  
> "indices.store.throttle.type": "merge",  
> "indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
> }
> 
> These setting should be able to be updated according to the guide page.
> 
> On Friday, November 16, 2012 4:41:51 PM UTC-8, Igor Motov wrote:
> 
> > There are some examples and list of settings that you can update on this  
> > page:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html)
> > 
> > On Friday, November 16, 2012 7:30:47 PM UTC-5, Jae wrote:
> > 
> > > I can see the empty persistent and transient objects with "curl  
> > > localhost:7104/\_cluster/settings" but how can I add updatable settings?
> > > 
> > > Thank you  
> > > Best, Jae
> > > 
> > > On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:
> > > 
> > > > That might simply indicate that your update command doesn't contain any  
> > > > updatable settings. How does it look like? Does it contain "persistent" or  
> > > > "transient" objects?
> > > > 
> > > > On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> > > > 
> > > > > I am seeing the following error:
> > > > > 
> > > > > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > > > > settings to update;]","status":500}
> > > > > 
> > > > > I think that this is because
> > > > > 
> > > > > ```
> > > > > @Override
> > > > > public ActionRequestValidationException validate() {
> > > > > ActionRequestValidationException validationException = null;
> > > > > if (transientSettings.getAsMap().isEmpty() && 
> > > > > 
> > > > > ```
> > > > > 
> > > > > persistentSettings.getAsMap().isEmpty()) {  
> > > > > validationException = addValidationError("no settings to  
> > > > > update", validationException);  
> > > > > }  
> > > > > return validationException;  
> > > > > }
> > > > > 
> > > > > Is this know bug? Is there anybody who didn't have this problem yet?
> > > > > 
> > > > > Thank you  
> > > > > Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 17, 2012, 1:06am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/8 "2012-11-17T01:06:30Z")

</div>

When you run it with -XGET you only get back the setting that you set there  
using -XPUT.

On Friday, November 16, 2012 7:59:58 PM UTC-5, Jae wrote:

> Every setting I tried is throwing the same error message. I think that I  
> should see the full list of cluster wide settings with 'curl -XGET  
> [http://localhost:7104/\_cluster/settings](http://localhost:7104/_cluster/settings)' but I am seeing empty persistent  
> and transient settings like
> 
> {"persistent":{},"transient":{}}
> 
> What did I do wrong?
> 
> On Friday, November 16, 2012 4:48:14 PM UTC-8, Jae wrote:
> 
> > I tried to update
> > 
> > "persistent": {  
> > "indices.store.throttle.type": "merge",  
> > "indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
> > }
> > 
> > These setting should be able to be updated according to the guide page.
> > 
> > On Friday, November 16, 2012 4:41:51 PM UTC-8, Igor Motov wrote:
> > 
> > > There are some examples and list of settings that you can update on this  
> > > page:  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html)
> > > 
> > > On Friday, November 16, 2012 7:30:47 PM UTC-5, Jae wrote:
> > > 
> > > > I can see the empty persistent and transient objects with "curl  
> > > > localhost:7104/\_cluster/settings" but how can I add updatable settings?
> > > > 
> > > > Thank you  
> > > > Best, Jae
> > > > 
> > > > On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:
> > > > 
> > > > > That might simply indicate that your update command doesn't contain  
> > > > > any updatable settings. How does it look like? Does it contain "persistent"  
> > > > > or "transient" objects?
> > > > > 
> > > > > On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> > > > > 
> > > > > > I am seeing the following error:
> > > > > > 
> > > > > > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > > > > > settings to update;]","status":500}
> > > > > > 
> > > > > > I think that this is because
> > > > > > 
> > > > > > ```
> > > > > > @Override
> > > > > > public ActionRequestValidationException validate() {
> > > > > > ActionRequestValidationException validationException = null;
> > > > > > if (transientSettings.getAsMap().isEmpty() && 
> > > > > > 
> > > > > > ```
> > > > > > 
> > > > > > persistentSettings.getAsMap().isEmpty()) {  
> > > > > > validationException = addValidationError("no settings to  
> > > > > > update", validationException);  
> > > > > > }  
> > > > > > return validationException;  
> > > > > > }
> > > > > > 
> > > > > > Is this know bug? Is there anybody who didn't have this problem yet?
> > > > > > 
> > > > > > Thank you  
> > > > > > Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [November 17, 2012, 1:40am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/9 "2012-11-17T01:40:21Z")

</div>

So, how can I add updatable setting using -XPUT?

On Friday, November 16, 2012 5:06:30 PM UTC-8, Igor Motov wrote:

> When you run it with -XGET you only get back the setting that you set  
> there using -XPUT.
> 
> On Friday, November 16, 2012 7:59:58 PM UTC-5, Jae wrote:
> 
> > Every setting I tried is throwing the same error message. I think that I  
> > should see the full list of cluster wide settings with 'curl -XGET  
> > [http://localhost:7104/\_cluster/settings](http://localhost:7104/_cluster/settings)' but I am seeing empty  
> > persistent and transient settings like
> > 
> > {"persistent":{},"transient":{}}
> > 
> > What did I do wrong?
> > 
> > On Friday, November 16, 2012 4:48:14 PM UTC-8, Jae wrote:
> > 
> > > I tried to update
> > > 
> > > "persistent": {  
> > > "indices.store.throttle.type": "merge",  
> > > "indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
> > > }
> > > 
> > > These setting should be able to be updated according to the guide page.
> > > 
> > > On Friday, November 16, 2012 4:41:51 PM UTC-8, Igor Motov wrote:
> > > 
> > > > There are some examples and list of settings that you can update on  
> > > > this page:  
> > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html)
> > > > 
> > > > On Friday, November 16, 2012 7:30:47 PM UTC-5, Jae wrote:
> > > > 
> > > > > I can see the empty persistent and transient objects with "curl  
> > > > > localhost:7104/\_cluster/settings" but how can I add updatable settings?
> > > > > 
> > > > > Thank you  
> > > > > Best, Jae
> > > > > 
> > > > > On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:
> > > > > 
> > > > > > That might simply indicate that your update command doesn't contain  
> > > > > > any updatable settings. How does it look like? Does it contain "persistent"  
> > > > > > or "transient" objects?
> > > > > > 
> > > > > > On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> > > > > > 
> > > > > > > I am seeing the following error:
> > > > > > > 
> > > > > > > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > > > > > > settings to update;]","status":500}
> > > > > > > 
> > > > > > > I think that this is because
> > > > > > > 
> > > > > > > ```
> > > > > > > @Override
> > > > > > > public ActionRequestValidationException validate() {
> > > > > > > ActionRequestValidationException validationException = null;
> > > > > > > if (transientSettings.getAsMap().isEmpty() && 
> > > > > > > 
> > > > > > > ```
> > > > > > > 
> > > > > > > persistentSettings.getAsMap().isEmpty()) {  
> > > > > > > validationException = addValidationError("no settings to  
> > > > > > > update", validationException);  
> > > > > > > }  
> > > > > > > return validationException;  
> > > > > > > }
> > > > > > > 
> > > > > > > Is this know bug? Is there anybody who didn't have this problem yet?
> > > > > > > 
> > > > > > > Thank you  
> > > > > > > Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 17, 2012, 1:42am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/10 "2012-11-17T01:42:20Z")

</div>

Like this:

curl -XPUT localhost:7104/\_cluster/settings -d '{  
"persistent": {  
"indices.store.throttle.type": "merge",  
"indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
}  
}'

On Friday, November 16, 2012 8:06:30 PM UTC-5, Igor Motov wrote:

> When you run it with -XGET you only get back the setting that you set  
> there using -XPUT.
> 
> On Friday, November 16, 2012 7:59:58 PM UTC-5, Jae wrote:
> 
> > Every setting I tried is throwing the same error message. I think that I  
> > should see the full list of cluster wide settings with 'curl -XGET  
> > [http://localhost:7104/\_cluster/settings](http://localhost:7104/_cluster/settings)' but I am seeing empty  
> > persistent and transient settings like
> > 
> > {"persistent":{},"transient":{}}
> > 
> > What did I do wrong?
> > 
> > On Friday, November 16, 2012 4:48:14 PM UTC-8, Jae wrote:
> > 
> > > I tried to update
> > > 
> > > "persistent": {  
> > > "indices.store.throttle.type": "merge",  
> > > "indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
> > > }
> > > 
> > > These setting should be able to be updated according to the guide page.
> > > 
> > > On Friday, November 16, 2012 4:41:51 PM UTC-8, Igor Motov wrote:
> > > 
> > > > There are some examples and list of settings that you can update on  
> > > > this page:  
> > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html)
> > > > 
> > > > On Friday, November 16, 2012 7:30:47 PM UTC-5, Jae wrote:
> > > > 
> > > > > I can see the empty persistent and transient objects with "curl  
> > > > > localhost:7104/\_cluster/settings" but how can I add updatable settings?
> > > > > 
> > > > > Thank you  
> > > > > Best, Jae
> > > > > 
> > > > > On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:
> > > > > 
> > > > > > That might simply indicate that your update command doesn't contain  
> > > > > > any updatable settings. How does it look like? Does it contain "persistent"  
> > > > > > or "transient" objects?
> > > > > > 
> > > > > > On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> > > > > > 
> > > > > > > I am seeing the following error:
> > > > > > > 
> > > > > > > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > > > > > > settings to update;]","status":500}
> > > > > > > 
> > > > > > > I think that this is because
> > > > > > > 
> > > > > > > ```
> > > > > > > @Override
> > > > > > > public ActionRequestValidationException validate() {
> > > > > > > ActionRequestValidationException validationException = null;
> > > > > > > if (transientSettings.getAsMap().isEmpty() && 
> > > > > > > 
> > > > > > > ```
> > > > > > > 
> > > > > > > persistentSettings.getAsMap().isEmpty()) {  
> > > > > > > validationException = addValidationError("no settings to  
> > > > > > > update", validationException);  
> > > > > > > }  
> > > > > > > return validationException;  
> > > > > > > }
> > > > > > > 
> > > > > > > Is this know bug? Is there anybody who didn't have this problem yet?
> > > > > > > 
> > > > > > > Thank you  
> > > > > > > Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [November 17, 2012, 1:48am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/11 "2012-11-17T01:48:25Z")

</div>

what the heck... when I specify an option as a file name such as

curl -XPUT localhost:7104/\_cluster/settings -d @filename

and filename contains the following settings, it didn't work! what's the  
difference? ☹

Anyway, thank you so much for your patience

On Friday, November 16, 2012 5:42:20 PM UTC-8, Igor Motov wrote:

> Like this:
> 
> curl -XPUT localhost:7104/\_cluster/settings -d '{  
> "persistent": {  
> "indices.store.throttle.type": "merge",  
> "indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
> }  
> }'
> 
> On Friday, November 16, 2012 8:06:30 PM UTC-5, Igor Motov wrote:
> 
> > When you run it with -XGET you only get back the setting that you set  
> > there using -XPUT.
> > 
> > On Friday, November 16, 2012 7:59:58 PM UTC-5, Jae wrote:
> > 
> > > Every setting I tried is throwing the same error message. I think that I  
> > > should see the full list of cluster wide settings with 'curl -XGET  
> > > [http://localhost:7104/\_cluster/settings](http://localhost:7104/_cluster/settings)' but I am seeing empty  
> > > persistent and transient settings like
> > > 
> > > {"persistent":{},"transient":{}}
> > > 
> > > What did I do wrong?
> > > 
> > > On Friday, November 16, 2012 4:48:14 PM UTC-8, Jae wrote:
> > > 
> > > > I tried to update
> > > > 
> > > > "persistent": {  
> > > > "indices.store.throttle.type": "merge",  
> > > > "indices.store.throttle.max\_bytes\_per\_sec": "50mb"  
> > > > }
> > > > 
> > > > These setting should be able to be updated according to the guide page.
> > > > 
> > > > On Friday, November 16, 2012 4:41:51 PM UTC-8, Igor Motov wrote:
> > > > 
> > > > > There are some examples and list of settings that you can update on  
> > > > > this page:  
> > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-update-settings.html)
> > > > > 
> > > > > On Friday, November 16, 2012 7:30:47 PM UTC-5, Jae wrote:
> > > > > 
> > > > > > I can see the empty persistent and transient objects with "curl  
> > > > > > localhost:7104/\_cluster/settings" but how can I add updatable settings?
> > > > > > 
> > > > > > Thank you  
> > > > > > Best, Jae
> > > > > > 
> > > > > > On Friday, November 16, 2012 4:26:00 PM UTC-8, Igor Motov wrote:
> > > > > > 
> > > > > > > That might simply indicate that your update command doesn't contain  
> > > > > > > any updatable settings. How does it look like? Does it contain "persistent"  
> > > > > > > or "transient" objects?
> > > > > > > 
> > > > > > > On Friday, November 16, 2012 6:54:07 PM UTC-5, Jae wrote:
> > > > > > > 
> > > > > > > > I am seeing the following error:
> > > > > > > > 
> > > > > > > > {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> > > > > > > > settings to update;]","status":500}
> > > > > > > > 
> > > > > > > > I think that this is because
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > @Override
> > > > > > > > public ActionRequestValidationException validate() {
> > > > > > > > ActionRequestValidationException validationException = null;
> > > > > > > > if (transientSettings.getAsMap().isEmpty() && 
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > 
> > > > > > > > persistentSettings.getAsMap().isEmpty()) {  
> > > > > > > > validationException = addValidationError("no settings  
> > > > > > > > to update", validationException);  
> > > > > > > > }  
> > > > > > > > return validationException;  
> > > > > > > > }
> > > > > > > > 
> > > > > > > > Is this know bug? Is there anybody who didn't have this problem yet?
> > > > > > > > 
> > > > > > > > Thank you  
> > > > > > > > Best, Jae

--

---

<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:03am UTC](https://discuss.elastic.co/t/how-to-update-cluster-setting/9747/12 "2017-07-06T03:03:54Z")

</div>


