Reputation: 2695
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
Upvotes: 6
Views: 23841
Reputation: 29912
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
Upvotes: 6