Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i restart apache cassandra 2.0.4?

I have one node Cassandra 2.0.4 up and running i need to restart it after configuration change i tired restarting it by referring this but not working

>cassandra/bin/cassandra -p new
 Error: Exception thrown by the agent :java.rmi.server.ExportException: Port already in use: 7199; nested exception is:
    java.net.BindException: Address already in use
 >kill $(cat new)
-bash: kill: (10404) - No such process

I did installation referring this

Till now when I have to restart it, I am doing by restarting server on which Cassandra is running.

Please tell me what is the proper way to restart apache Cassandra 2.0.4

like image 500
Vikas Hardia Avatar asked Jan 29 '14 14:01

Vikas Hardia


People also ask

How do I restart Apache Cassandra?

For Tarball installations, you can either close the program by pressing Ctrl+C if you started Cassandra in the foregroundor, if you started Cassandra in the background, you can fetch the process ID of the Cassandra process by entering ps -ef | grep cassandra ...


2 Answers

If it's only a process and not a service you could do something like

$ ps auwx | grep cassandra
$ sudo kill <pid>

where <pid> is what you get from ps auwx | grep cassandra

This will stop the process. Then you have to start it again

$ cd <install_location>
$ bin/cassandra

where <install_location> is where you have installed cassandra

if is a service: service cassandra restart

like image 81
DonCallisto Avatar answered Sep 21 '22 09:09

DonCallisto


Try to use these commands:

$ service dse start/stop/restart
like image 24
Alex Avatar answered Sep 21 '22 09:09

Alex