Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Anshu Vajpayee
https://issues.apache.org/jira/browse/CASSANDRA-12001 for your reference.

On Mon, Jun 13, 2016 at 11:55 PM, Jake Luciani  wrote:

> If that's true it's a bug then. can you open a ticket and include the
> logs? https://issues.apache.org/jira/browse/CASSANDRA
>
> On Mon, Jun 13, 2016 at 2:19 PM, Anshu Vajpayee 
> wrote:
>
>> I just tested. It doesn't flush memtables like nodetool drain/flush
>> command. Means it only does crash for the node, no graceful shutdown.
>>
>>
>>
>> On Mon, Jun 13, 2016 at 10:51 PM, Jake Luciani  wrote:
>>
>>> Yeah same as drain.  Just exits at the end.
>>>
>>> On Mon, Jun 13, 2016 at 1:11 PM, Anshu Vajpayee <
>>> anshu.vajpa...@gmail.com> wrote:
>>>
>>>> Thanks for information.
>>>>
>>>> Does stopdaemon also flush memtables  and stop trift and CQL interface
>>>> before shutting down the daemon ?  does node also announce  shutting down
>>>> message  in ring  ?
>>>>
>>>>
>>>> On Mon, Jun 13, 2016 at 10:14 PM, Jake Luciani 
>>>> wrote:
>>>>
>>>>> If you want to understand why, it's because C* was designed to be
>>>>> crash-only.
>>>>>
>>>>> https://www.usenix.org/conference/hotos-ix/crash-only-software
>>>>>
>>>>> Since this is great for the project but bad for operators experience
>>>>> we have later added this stopdaemon command.
>>>>>
>>>>> On Mon, Jun 13, 2016 at 12:37 PM, Anshu Vajpayee <
>>>>> anshu.vajpa...@gmail.com> wrote:
>>>>>
>>>>>> As per Documentation(pasted as below), It does not stop Daemon . I
>>>>>> tested also.I was looking for graceful shutdown  for Cassandra
>>>>>> Daemon.Description
>>>>>> <https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsDrain.html?scroll=toolsDrain__description_unique_11>
>>>>>>
>>>>>> Flushes all memtables from the node to SSTables on disk. Cassandra
>>>>>> stops listening for connections from the client and other nodes. You need
>>>>>> to restart Cassandra after running nodetool drain. You typically use
>>>>>> this command before upgrading a node to a new version of Cassandra. To
>>>>>> simply flush memtables to disk, use nodetool flush.
>>>>>>
>>>>>> On Mon, Jun 13, 2016 at 10:00 PM, Jeff Jirsa <
>>>>>> jeff.ji...@crowdstrike.com> wrote:
>>>>>>
>>>>>>> `nodetool drain`
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *From: *Anshu Vajpayee 
>>>>>>> *Reply-To: *"user@cassandra.apache.org" 
>>>>>>> *Date: *Monday, June 13, 2016 at 9:28 AM
>>>>>>> *To: *"user@cassandra.apache.org" 
>>>>>>> *Subject: *Why there is no native shutdown command in cassandra
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hi All
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Why we dont have native shutdown command in Cassandra ?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Every software provides graceful shutdown command.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ​Regards,
>>>>>>>
>>>>>>> Anshu​
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Regards,*
>>>>>> *Anshu *
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> http://twitter.com/tjake
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Regards,*
>>>> *Anshu *
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> http://twitter.com/tjake
>>>
>>
>>
>>
>> --
>> *Regards,*
>> *Anshu *
>>
>>
>>
>
>
> --
> http://twitter.com/tjake
>



-- 
*Regards,*
*Anshu *


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Jake Luciani
If that's true it's a bug then. can you open a ticket and include the logs?
https://issues.apache.org/jira/browse/CASSANDRA

On Mon, Jun 13, 2016 at 2:19 PM, Anshu Vajpayee 
wrote:

> I just tested. It doesn't flush memtables like nodetool drain/flush
> command. Means it only does crash for the node, no graceful shutdown.
>
>
>
> On Mon, Jun 13, 2016 at 10:51 PM, Jake Luciani  wrote:
>
>> Yeah same as drain.  Just exits at the end.
>>
>> On Mon, Jun 13, 2016 at 1:11 PM, Anshu Vajpayee > > wrote:
>>
>>> Thanks for information.
>>>
>>> Does stopdaemon also flush memtables  and stop trift and CQL interface
>>> before shutting down the daemon ?  does node also announce  shutting down
>>> message  in ring  ?
>>>
>>>
>>> On Mon, Jun 13, 2016 at 10:14 PM, Jake Luciani  wrote:
>>>
>>>> If you want to understand why, it's because C* was designed to be
>>>> crash-only.
>>>>
>>>> https://www.usenix.org/conference/hotos-ix/crash-only-software
>>>>
>>>> Since this is great for the project but bad for operators experience we
>>>> have later added this stopdaemon command.
>>>>
>>>> On Mon, Jun 13, 2016 at 12:37 PM, Anshu Vajpayee <
>>>> anshu.vajpa...@gmail.com> wrote:
>>>>
>>>>> As per Documentation(pasted as below), It does not stop Daemon . I
>>>>> tested also.I was looking for graceful shutdown  for Cassandra Daemon.
>>>>> Description
>>>>> <https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsDrain.html?scroll=toolsDrain__description_unique_11>
>>>>>
>>>>> Flushes all memtables from the node to SSTables on disk. Cassandra
>>>>> stops listening for connections from the client and other nodes. You need
>>>>> to restart Cassandra after running nodetool drain. You typically use
>>>>> this command before upgrading a node to a new version of Cassandra. To
>>>>> simply flush memtables to disk, use nodetool flush.
>>>>>
>>>>> On Mon, Jun 13, 2016 at 10:00 PM, Jeff Jirsa <
>>>>> jeff.ji...@crowdstrike.com> wrote:
>>>>>
>>>>>> `nodetool drain`
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> *From: *Anshu Vajpayee 
>>>>>> *Reply-To: *"user@cassandra.apache.org" 
>>>>>> *Date: *Monday, June 13, 2016 at 9:28 AM
>>>>>> *To: *"user@cassandra.apache.org" 
>>>>>> *Subject: *Why there is no native shutdown command in cassandra
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hi All
>>>>>>
>>>>>>
>>>>>>
>>>>>> Why we dont have native shutdown command in Cassandra ?
>>>>>>
>>>>>>
>>>>>>
>>>>>> Every software provides graceful shutdown command.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ​Regards,
>>>>>>
>>>>>> Anshu​
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Regards,*
>>>>> *Anshu *
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> http://twitter.com/tjake
>>>>
>>>
>>>
>>>
>>> --
>>> *Regards,*
>>> *Anshu *
>>>
>>>
>>>
>>
>>
>> --
>> http://twitter.com/tjake
>>
>
>
>
> --
> *Regards,*
> *Anshu *
>
>
>


-- 
http://twitter.com/tjake


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Anshu Vajpayee
I just tested. It doesn't flush memtables like nodetool drain/flush
command. Means it only does crash for the node, no graceful shutdown.



On Mon, Jun 13, 2016 at 10:51 PM, Jake Luciani  wrote:

> Yeah same as drain.  Just exits at the end.
>
> On Mon, Jun 13, 2016 at 1:11 PM, Anshu Vajpayee 
> wrote:
>
>> Thanks for information.
>>
>> Does stopdaemon also flush memtables  and stop trift and CQL interface
>> before shutting down the daemon ?  does node also announce  shutting down
>> message  in ring  ?
>>
>>
>> On Mon, Jun 13, 2016 at 10:14 PM, Jake Luciani  wrote:
>>
>>> If you want to understand why, it's because C* was designed to be
>>> crash-only.
>>>
>>> https://www.usenix.org/conference/hotos-ix/crash-only-software
>>>
>>> Since this is great for the project but bad for operators experience we
>>> have later added this stopdaemon command.
>>>
>>> On Mon, Jun 13, 2016 at 12:37 PM, Anshu Vajpayee <
>>> anshu.vajpa...@gmail.com> wrote:
>>>
>>>> As per Documentation(pasted as below), It does not stop Daemon . I
>>>> tested also.I was looking for graceful shutdown  for Cassandra Daemon.
>>>> Description
>>>> <https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsDrain.html?scroll=toolsDrain__description_unique_11>
>>>>
>>>> Flushes all memtables from the node to SSTables on disk. Cassandra
>>>> stops listening for connections from the client and other nodes. You need
>>>> to restart Cassandra after running nodetool drain. You typically use
>>>> this command before upgrading a node to a new version of Cassandra. To
>>>> simply flush memtables to disk, use nodetool flush.
>>>>
>>>> On Mon, Jun 13, 2016 at 10:00 PM, Jeff Jirsa <
>>>> jeff.ji...@crowdstrike.com> wrote:
>>>>
>>>>> `nodetool drain`
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> *From: *Anshu Vajpayee 
>>>>> *Reply-To: *"user@cassandra.apache.org" 
>>>>> *Date: *Monday, June 13, 2016 at 9:28 AM
>>>>> *To: *"user@cassandra.apache.org" 
>>>>> *Subject: *Why there is no native shutdown command in cassandra
>>>>>
>>>>>
>>>>>
>>>>> Hi All
>>>>>
>>>>>
>>>>>
>>>>> Why we dont have native shutdown command in Cassandra ?
>>>>>
>>>>>
>>>>>
>>>>> Every software provides graceful shutdown command.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ​Regards,
>>>>>
>>>>> Anshu​
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Regards,*
>>>> *Anshu *
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> http://twitter.com/tjake
>>>
>>
>>
>>
>> --
>> *Regards,*
>> *Anshu *
>>
>>
>>
>
>
> --
> http://twitter.com/tjake
>



-- 
*Regards,*
*Anshu *


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Jake Luciani
Yeah same as drain.  Just exits at the end.

On Mon, Jun 13, 2016 at 1:11 PM, Anshu Vajpayee 
wrote:

> Thanks for information.
>
> Does stopdaemon also flush memtables  and stop trift and CQL interface
> before shutting down the daemon ?  does node also announce  shutting down
> message  in ring  ?
>
>
> On Mon, Jun 13, 2016 at 10:14 PM, Jake Luciani  wrote:
>
>> If you want to understand why, it's because C* was designed to be
>> crash-only.
>>
>> https://www.usenix.org/conference/hotos-ix/crash-only-software
>>
>> Since this is great for the project but bad for operators experience we
>> have later added this stopdaemon command.
>>
>> On Mon, Jun 13, 2016 at 12:37 PM, Anshu Vajpayee <
>> anshu.vajpa...@gmail.com> wrote:
>>
>>> As per Documentation(pasted as below), It does not stop Daemon . I
>>> tested also.I was looking for graceful shutdown  for Cassandra Daemon.
>>> Description
>>> <https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsDrain.html?scroll=toolsDrain__description_unique_11>
>>>
>>> Flushes all memtables from the node to SSTables on disk. Cassandra stops
>>> listening for connections from the client and other nodes. You need to
>>> restart Cassandra after running nodetool drain. You typically use this
>>> command before upgrading a node to a new version of Cassandra. To simply
>>> flush memtables to disk, use nodetool flush.
>>>
>>> On Mon, Jun 13, 2016 at 10:00 PM, Jeff Jirsa >> > wrote:
>>>
>>>> `nodetool drain`
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *From: *Anshu Vajpayee 
>>>> *Reply-To: *"user@cassandra.apache.org" 
>>>> *Date: *Monday, June 13, 2016 at 9:28 AM
>>>> *To: *"user@cassandra.apache.org" 
>>>> *Subject: *Why there is no native shutdown command in cassandra
>>>>
>>>>
>>>>
>>>> Hi All
>>>>
>>>>
>>>>
>>>> Why we dont have native shutdown command in Cassandra ?
>>>>
>>>>
>>>>
>>>> Every software provides graceful shutdown command.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ​Regards,
>>>>
>>>> Anshu​
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> *Regards,*
>>> *Anshu *
>>>
>>>
>>>
>>
>>
>> --
>> http://twitter.com/tjake
>>
>
>
>
> --
> *Regards,*
> *Anshu *
>
>
>


-- 
http://twitter.com/tjake


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Anshu Vajpayee
Thanks for information.

Does stopdaemon also flush memtables  and stop trift and CQL interface
before shutting down the daemon ?  does node also announce  shutting down
message  in ring  ?


On Mon, Jun 13, 2016 at 10:14 PM, Jake Luciani  wrote:

> If you want to understand why, it's because C* was designed to be
> crash-only.
>
> https://www.usenix.org/conference/hotos-ix/crash-only-software
>
> Since this is great for the project but bad for operators experience we
> have later added this stopdaemon command.
>
> On Mon, Jun 13, 2016 at 12:37 PM, Anshu Vajpayee  > wrote:
>
>> As per Documentation(pasted as below), It does not stop Daemon . I tested
>> also.I was looking for graceful shutdown  for Cassandra Daemon.
>> Description
>> <https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsDrain.html?scroll=toolsDrain__description_unique_11>
>>
>> Flushes all memtables from the node to SSTables on disk. Cassandra stops
>> listening for connections from the client and other nodes. You need to
>> restart Cassandra after running nodetool drain. You typically use this
>> command before upgrading a node to a new version of Cassandra. To simply
>> flush memtables to disk, use nodetool flush.
>>
>> On Mon, Jun 13, 2016 at 10:00 PM, Jeff Jirsa 
>> wrote:
>>
>>> `nodetool drain`
>>>
>>>
>>>
>>>
>>>
>>> *From: *Anshu Vajpayee 
>>> *Reply-To: *"user@cassandra.apache.org" 
>>> *Date: *Monday, June 13, 2016 at 9:28 AM
>>> *To: *"user@cassandra.apache.org" 
>>> *Subject: *Why there is no native shutdown command in cassandra
>>>
>>>
>>>
>>> Hi All
>>>
>>>
>>>
>>> Why we dont have native shutdown command in Cassandra ?
>>>
>>>
>>>
>>> Every software provides graceful shutdown command.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ​Regards,
>>>
>>> Anshu​
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Regards,*
>> *Anshu *
>>
>>
>>
>
>
> --
> http://twitter.com/tjake
>



-- 
*Regards,*
*Anshu *


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Anshu Vajpayee
Thanks, I am able to run the stopdaemon option in version 2.1.
but it doesn't print anything in log for log level INFO about shutdown.

In case of log level DEBUG , it prints shutdown information.

INFO  [RMI TCP Connection(4)-127.0.0.1] 2016-06-13 09:49:29,223
CassandraDaemon.java:410 - Cassandra shutting down...
INFO  [RMI TCP Connection(4)-127.0.0.1] 2016-06-13 09:49:29,223
ThriftServer.java:142 - Stop listening to thrift clients
INFO  [RMI TCP Connection(4)-127.0.0.1] 2016-06-13 09:49:29,235
Server.java:213 - Stop listening for CQL clients


On Mon, Jun 13, 2016 at 10:01 PM, DuyHai Doan  wrote:

> In Cassandra 3.x, I think there is a "nodetool stopdaemon" command
>
> On Mon, Jun 13, 2016 at 6:28 PM, Anshu Vajpayee 
> wrote:
>
>> Hi All
>>
>> Why we dont have native shutdown command in Cassandra ?
>>
>> Every software provides graceful shutdown command.
>>
>>
>>
>> ​Regards,
>> Anshu​
>>
>>
>>
>


-- 
*Regards,*
*Anshu *


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Jake Luciani
If you want to understand why, it's because C* was designed to be
crash-only.

https://www.usenix.org/conference/hotos-ix/crash-only-software

Since this is great for the project but bad for operators experience we
have later added this stopdaemon command.

On Mon, Jun 13, 2016 at 12:37 PM, Anshu Vajpayee 
wrote:

> As per Documentation(pasted as below), It does not stop Daemon . I tested
> also.I was looking for graceful shutdown  for Cassandra Daemon.Description
>
> <https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsDrain.html?scroll=toolsDrain__description_unique_11>
>
> Flushes all memtables from the node to SSTables on disk. Cassandra stops
> listening for connections from the client and other nodes. You need to
> restart Cassandra after running nodetool drain. You typically use this
> command before upgrading a node to a new version of Cassandra. To simply
> flush memtables to disk, use nodetool flush.
>
> On Mon, Jun 13, 2016 at 10:00 PM, Jeff Jirsa 
> wrote:
>
>> `nodetool drain`
>>
>>
>>
>>
>>
>> *From: *Anshu Vajpayee 
>> *Reply-To: *"user@cassandra.apache.org" 
>> *Date: *Monday, June 13, 2016 at 9:28 AM
>> *To: *"user@cassandra.apache.org" 
>> *Subject: *Why there is no native shutdown command in cassandra
>>
>>
>>
>> Hi All
>>
>>
>>
>> Why we dont have native shutdown command in Cassandra ?
>>
>>
>>
>> Every software provides graceful shutdown command.
>>
>>
>>
>>
>>
>>
>>
>> ​Regards,
>>
>> Anshu​
>>
>>
>>
>>
>>
>
>
>
> --
> *Regards,*
> *Anshu *
>
>
>


-- 
http://twitter.com/tjake


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Anshu Vajpayee
As per Documentation(pasted as below), It does not stop Daemon . I tested
also.I was looking for graceful shutdown  for Cassandra Daemon.Description
<https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsDrain.html?scroll=toolsDrain__description_unique_11>

Flushes all memtables from the node to SSTables on disk. Cassandra stops
listening for connections from the client and other nodes. You need to
restart Cassandra after running nodetool drain. You typically use this
command before upgrading a node to a new version of Cassandra. To simply
flush memtables to disk, use nodetool flush.

On Mon, Jun 13, 2016 at 10:00 PM, Jeff Jirsa 
wrote:

> `nodetool drain`
>
>
>
>
>
> *From: *Anshu Vajpayee 
> *Reply-To: *"user@cassandra.apache.org" 
> *Date: *Monday, June 13, 2016 at 9:28 AM
> *To: *"user@cassandra.apache.org" 
> *Subject: *Why there is no native shutdown command in cassandra
>
>
>
> Hi All
>
>
>
> Why we dont have native shutdown command in Cassandra ?
>
>
>
> Every software provides graceful shutdown command.
>
>
>
>
>
>
>
> ​Regards,
>
> Anshu​
>
>
>
>
>



-- 
*Regards,*
*Anshu *


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread DuyHai Doan
In Cassandra 3.x, I think there is a "nodetool stopdaemon" command

On Mon, Jun 13, 2016 at 6:28 PM, Anshu Vajpayee 
wrote:

> Hi All
>
> Why we dont have native shutdown command in Cassandra ?
>
> Every software provides graceful shutdown command.
>
>
>
> ​Regards,
> Anshu​
>
>
>


Re: Why there is no native shutdown command in cassandra

2016-06-13 Thread Jeff Jirsa
`nodetool drain`

 

 

From: Anshu Vajpayee 
Reply-To: "user@cassandra.apache.org" 
Date: Monday, June 13, 2016 at 9:28 AM
To: "user@cassandra.apache.org" 
Subject: Why there is no native shutdown command in cassandra

 

Hi All 

 

Why we dont have native shutdown command in Cassandra ?

 

Every software provides graceful shutdown command.  

 

 

 

​Regards,

Anshu​

 

 



smime.p7s
Description: S/MIME cryptographic signature


Why there is no native shutdown command in cassandra

2016-06-13 Thread Anshu Vajpayee
Hi All

Why we dont have native shutdown command in Cassandra ?

Every software provides graceful shutdown command.



​Regards,
Anshu​