ES: How to stop servers in a cluster


(lalit mishra) #1

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.


(Shay Banon) #2

?. 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.


(lalit mishra) #3

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.


(David Pilato) #4

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

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.


(Shay Banon) #5

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

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


(David Pilato) #6

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

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

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.


(David Pilato) #7

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

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

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.


(David Pilato) #8

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

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

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.


(lalit mishra) #9

Hi,
Is it possible to create shutdown script for cluster and nodes? rather than
maintaining it over HTTP so as to have better control ?

Regards,
Lalit.

On Fri, Sep 9, 2011 at 1:52 AM, David Pilato david@pilato.fr wrote:

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.****





(Shay Banon) #10

Thanks!, I pulled your change (will also be part of 0.17.7), but then fixed
it in a nicer manner without the need to change anything in the script.

On Thu, Sep 8, 2011 at 11:22 PM, David Pilato david@pilato.fr wrote:

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.****





(Shay Banon) #11

Is there something wrong with simply exposing it with HTTP, you can create a
script however you want calling it.

On Sat, Sep 10, 2011 at 7:51 PM, lalit mishra lalit2583@gmail.com wrote:

Hi,
Is it possible to create shutdown script for cluster and nodes? rather than
maintaining it over HTTP so as to have better control ?

Regards,
Lalit.

On Fri, Sep 9, 2011 at 1:52 AM, David Pilato david@pilato.fr wrote:

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.****





(lalit mishra) #12

Hi Shay,
If the shutdown service is exposed over an HTTP there is a potential threat
that any one can fire a shutdown request. Rather I feel start/stop service
is kind of admin service and should not be exposed over an HTTP or we should
have some kind of authentication if exposed over an HTTP.

Regards,
Lalit.

On Sun, Sep 11, 2011 at 3:40 AM, Shay Banon kimchy@gmail.com wrote:

Is there something wrong with simply exposing it with HTTP, you can create
a script however you want calling it.

On Sat, Sep 10, 2011 at 7:51 PM, lalit mishra lalit2583@gmail.com wrote:

Hi,
Is it possible to create shutdown script for cluster and nodes? rather
than maintaining it over HTTP so as to have better control ?

Regards,
Lalit.

On Fri, Sep 9, 2011 at 1:52 AM, David Pilato david@pilato.fr wrote:

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.****





(system) #13