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
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 ...
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
Try to use these commands:
$ service dse start/stop/restart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With