How to update cluster setting?

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

--

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

--

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

--

There are some examples and list of settings that you can update on this
page:
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

--

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:
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

--

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:
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

--

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' 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:
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

--

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' 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:
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

--

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' 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:
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

--

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' 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:
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

--

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? :frowning:

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' 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:
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

--