I found the difference
In 0.16.5, you have set JAVA_OPTS=%JAVA_OPTS% -Djline.enabled=false in elasticsearch.bat
In 0.17.6, it’s not here anymore.
When you add it to 0.17.6, CTRL+C works again.
I add a pull request for it.
David.
De : elasticsearch@googlegroups.com [mailto:elasticsearch@googlegroups.com] De la part de David Pilato
Envoyé : jeudi 8 septembre 2011 22:10
À : elasticsearch@googlegroups.com
Objet : RE: ES: How to stop servers in a cluster
Test done with windows 7
Same as on XP.
ES 0.16.5 stops with CTRL+C
ES 0.17.6 doesn’t stop.
David.
De : elasticsearch@googlegroups.com [mailto:elasticsearch@googlegroups.com] De la part de David Pilato
Envoyé : jeudi 8 septembre 2011 20:45
À : elasticsearch@googlegroups.com
Objet : Re: ES: How to stop servers in a cluster
Yes. But when i run on the same computer a 0.16.5 version, CTRL C works.
I didn't test it on Windows 7.
David
Le 8 sept. 2011 à 19:46, Shay Banon kimchy@gmail.com a écrit :
Thats strange, nothing specific changed there. You mean you press Crtl+C in the windows screen, and nothing happens? even if you "wait"?
On Wed, Sep 7, 2011 at 7:29 PM, David Pilato david@pilato.fr wrote:
I confirm what Lalit said.
So by now, i simply click on the close button and it send the kill smoothly message to ES which ends ES as it was in the previous version.
If Windows ask for "force terminate" (don't know how it is in english), just click on Wait for the end of the process.
HTH,
David
Le 7 sept. 2011 à 18:11, lalit mishra lalit2583@gmail.com a écrit :
thanks Shay
On windows Vista i am unable to use cntrl C to stop elasticsearch server(0.17.6).
but with previous version elasticsearch-0.16.4 I was able to do so.
On Wed, Sep 7, 2011 at 9:20 PM, Shay Banon kimchy@gmail.com wrote:
?. Ctrl+C will work, assuming its running in the foreground. You can also "kill pid" the process (thats an ordinary shutdown of a node), or use the shutdown API (with whatever client you want to use).
On Wed, Sep 7, 2011 at 6:48 PM, lalit mishra lalit2583@gmail.com wrote:
Hi Shay,
Cntrl-C options is currently not available in ES(new version) so the best way to stop elastic search using Shutdown api ?
or is there any other way to stop ES (server or cluster) other than making HTTP request(using java client) ?
Regards,
Lalit.