Ivan
(Ivan Brusic)
May 8, 2014, 12:18am
1
Does nodes restart action work? It is not documented, and whenever I try to
use it I get:
{
"error" : "ElasticSearchIllegalStateException[restart is disabled (for
now) ....]",
"status" : 500
}
Which indicates a failure, but there is nothing else in the logs which
indicates any issues.
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.action.admin.cluster.node.restart;
This file has been truncated. show original
The disabled property is set to false by default. Trying to come up with a
more graceful way for non-technical users to restart servers.
--
Ivan
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAXGEFJCWaHnp48Ti-ccDcHw2XgCrrdi5CccNxKRJ_50g%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .
Ivan
(Ivan Brusic)
May 8, 2014, 4:54pm
2
To answer my own question, it is in fact disabled:
opened 11:48AM - 17 Jul 10 UTC
closed 01:52PM - 20 Mar 11 UTC
Hiya
I started two nodes with `./bin/elasticsearch` and once settled, issued a:…
```
curl -XPOST 'http://127.0.0.1:9200/_cluster/nodes/_restart'
```
The nodes restart, but no node is made master, so they are essentially zombies. See the logs here:
http://gist.github.com/479454
--
Ivan
On Wed, May 7, 2014 at 5:18 PM, Ivan Brusic ivan@brusic.com wrote:
Does nodes restart action work? It is not documented, and whenever I try
to use it I get:
{
"error" : "ElasticSearchIllegalStateException[restart is disabled (for
now) ....]",
"status" : 500
}
Which indicates a failure, but there is nothing else in the logs which
indicates any issues.
https://github.com/elasticsearch/elasticsearch/blob/1.0/src/main/java/org/elasticsearch/action/admin/cluster/node/restart/TransportNodesRestartAction.java#L68
The disabled property is set to false by default. Trying to come up with a
more graceful way for non-technical users to restart servers.
--
Ivan
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAmJZff_v0JGLoq1xCUWE10RHVqgLYtCw9MB7E3bowFig%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .