You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Anumod Mullachery <an...@gmail.com> on 2018/03/28 00:20:53 UTC

Apache Cassandra start up script

Hi All ,

I’ve installed Apache Cassandra( Tarball install )..
But there is no way to see the Cassandra status / stop option .


Anyone has the Apache Cassandra start / stop script for Cassandra 3.12

Can some one help on this ?


Thanks,

Anumod
Mob-718-844-3841
PA,USA

Sent from my iPhone
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org
For additional commands, e-mail: user-help@cassandra.apache.org


Re: Apache Cassandra start up script

Posted by Alex Lourie <al...@instaclustr.com>.
Hi Anumod

Echoing what Christophe said, you should also mention what OS you are
using, so that we would be able to help you get to the solution.

Cheers,
Alex.

On Wed, 28 Mar 2018 at 11:05 Christophe Schmitz <ch...@instaclustr.com>
wrote:

> Hi Anumod,
>
> When you install Cassandra using the tarball install, you will not get a
> service file installed. It becomes your responsability to write one (or to
> take one from the internet).
> When you install Cassandra using a package (.deb, .rpm..), the installer
> should also install the service files, set the conf files in /etc directory
> etc... You should then get access to commands like systemctl start/stop
> Cassandra.
>
>
>
> Hope it helps!
>
> Cheers,
> Christophe
>
> On 28 March 2018 at 11:20, Anumod Mullachery <an...@gmail.com>
> wrote:
>
>> Hi All ,
>>
>> I’ve installed Apache Cassandra( Tarball install )..
>> But there is no way to see the Cassandra status / stop option .
>>
>>
>> Anyone has the Apache Cassandra start / stop script for Cassandra 3.12
>>
>> Can some one help on this ?
>>
>>
>> Thanks,
>>
>> Anumod
>> Mob-718-844-3841
>> PA,USA
>>
>> Sent from my iPhone
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org
>> For additional commands, e-mail: user-help@cassandra.apache.org
>>
>>
>
>
> --
>
> *Christophe Schmitz - **VP Consulting*
>
> AU: +61 4 03751980 / FR: +33 7 82022899 <+33%207%2082%2002%2028%2099>
>
> <https://www.facebook.com/instaclustr>   <https://twitter.com/instaclustr>
>    <https://www.linkedin.com/company/instaclustr>
>
> Read our latest technical blog posts here
> <https://www.instaclustr.com/blog/>. This email has been sent on behalf
> of Instaclustr Pty. Limited (Australia) and Instaclustr Inc (USA). This
> email and any attachments may contain confidential and legally
> privileged information.  If you are not the intended recipient, do not copy
> or disclose its content, but please reply to this email immediately and
> highlight the error to the sender and then immediately delete the message.
>
-- 


*Alex Lourie*
*Software Engineer*+61 423177059


<https://www.facebook.com/instaclustr>   <https://twitter.com/instaclustr>
<https://www.linkedin.com/company/instaclustr>

Read our latest technical blog posts here
<https://www.instaclustr.com/blog/>.

This email has been sent on behalf of Instaclustr Pty. Limited (Australia)
and Instaclustr Inc (USA).

This email and any attachments may contain confidential and legally
privileged information.  If you are not the intended recipient, do not copy
or disclose its content, but please reply to this email immediately and
highlight the error to the sender and then immediately delete the message.

Re: Apache Cassandra start up script

Posted by Christophe Schmitz <ch...@instaclustr.com>.
Hi Anumod,

When you install Cassandra using the tarball install, you will not get a
service file installed. It becomes your responsability to write one (or to
take one from the internet).
When you install Cassandra using a package (.deb, .rpm..), the installer
should also install the service files, set the conf files in /etc directory
etc... You should then get access to commands like systemctl start/stop
Cassandra.



Hope it helps!

Cheers,
Christophe

On 28 March 2018 at 11:20, Anumod Mullachery <an...@gmail.com>
wrote:

> Hi All ,
>
> I’ve installed Apache Cassandra( Tarball install )..
> But there is no way to see the Cassandra status / stop option .
>
>
> Anyone has the Apache Cassandra start / stop script for Cassandra 3.12
>
> Can some one help on this ?
>
>
> Thanks,
>
> Anumod
> Mob-718-844-3841
> PA,USA
>
> Sent from my iPhone
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org
> For additional commands, e-mail: user-help@cassandra.apache.org
>
>


-- 

*Christophe Schmitz - **VP Consulting*

AU: +61 4 03751980 / FR: +33 7 82022899

<https://www.facebook.com/instaclustr>   <https://twitter.com/instaclustr>
<https://www.linkedin.com/company/instaclustr>

Read our latest technical blog posts here
<https://www.instaclustr.com/blog/>. This email has been sent on behalf
of Instaclustr Pty. Limited (Australia) and Instaclustr Inc (USA). This
email and any attachments may contain confidential and legally
privileged information.  If you are not the intended recipient, do not copy
or disclose its content, but please reply to this email immediately and
highlight the error to the sender and then immediately delete the message.

Re: Apache Cassandra start up script

Posted by Romain Gérard <ro...@erebe.eu>.
Hello Anumod,
If you are using systemd you can use this one.
You may want to hardcode the limitNOFILE value if you don't have a new enough version of systemd in order to avoid this issue https://github.com/systemd/systemd/issues/6559 (https://link.getmailspring.com/link/1522241261.local-0405fd00-babe-v1.1.5-5834c99f@getmailspring.com/0?redirect=https%3A%2F%2Fgithub.com%2Fsystemd%2Fsystemd%2Fissues%2F6559&recipient=dXNlckBjYXNzYW5kcmEuYXBhY2hlLm9yZw%3D%3D)

# /etc/systemd/system/cassandra.service
[Unit]
Description=cassandra daemon
Wants=network-online.target
After=network-online.target

[Install]
WantedBy=multi-user.target

[Service]
ExecStart=/usr/local/cassandra/bin/cassandra -f -p /var/run/cassandra/cassandra.pid
Type=simple
User=cassandra
Group=cassandra
StandardOutput=journal
StandardError=inherit
Environment="CASSANDRA_HOME=/usr/local/cassandra" "CASSANDRA_CONF=/usr/local/cassandra/conf"
LimitNOFILE=infinity
TimeoutStopSec=10min
Restart=on-failure
PIDFile=/var/run/cassandra/cassandra.pid
ExecStop=/usr/local/cassandra/bin/nodetool disablegossip
ExecStop=/usr/local/cassandra/bin/nodetool disablethrift
ExecStop=/usr/local/cassandra/bin/nodetool drain
ExecStop=-/usr/local/cassandra/bin/nodetool stopdaemon

On mars 28 2018, at 2:20 am, Anumod Mullachery <an...@gmail.com> wrote:
>
> Hi All ,
> I’ve installed Apache Cassandra( Tarball install )..
> But there is no way to see the Cassandra status / stop option .
>
>
> Anyone has the Apache Cassandra start / stop script for Cassandra 3.12
> Can some one help on this ?
>
> Thanks,
> Anumod
> Mob-718-844-3841
> PA,USA
>
> Sent from my iPhone
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org
> For additional commands, e-mail: user-help@cassandra.apache.org
>