I may be doing something stupid. I'm sure I've queried under older versions but can't seem to query through the API or console to determine current cluster shard allocation setting - is anybody able to assist please?
I can enable and disable with a PUT but if I try the console with the following: -
GET _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable"
}
}
I get error: -
{
"error": "Incorrect HTTP method for uri [/_cluster/settings?pretty] and method [POST], allowed: [PUT, GET]",
"status": 405
}
GET _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable"
}
}
You can run:
GET _cluster/settings
What is happening behind the scene of the Dev Console is that anytime you are providing a body with the GET http verb, the verb is transformed to POST.
Because browsers don't really support GET with body.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.