Thursday, March 27, 2014

How to release the Cassandra port 7199 used by other application?

After downloading the Cassandra database from Apache Cassandra website and when you try to execute the cassandra.bat under /bin folder, you may get the below error if the port 7199 is used by some other application:

Starting Cassandra Server 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: JVM_Bind. Can anyone assists me in running cassandra successfully.

How to identify which application is blocking port #7199 and how to kill that?


Open the TCPView application and sort the output by Port
Click on the record which points to Port - 7199
Right click and "End Process"
Now, run the Cassandra.bat and it should work.

3 comments: