Launch Cassandra

I am new to the Cassandra database. I downloaded Cassandra and installed JAVA_HOME. When I try to start, the following exception is thrown:

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 someone help me with this problem?

+6
source share
6 answers

For those facing the same problem using Ubuntu OS, the solution might be to kill CassandraDaemon:

pkill -f CassandraDaemon

When you run the command “cassandra -f” for the first time to background daemons, so Ctrl ^ C does not stop the process.

+12
source

It appears that Cassandra is already running in the background. Try connecting with cassandra-cli.

+2
source

, cassandra,

lsof -i :9160

, ,

, kill -9 "then the pid you got from the last step"

cassandra -f when you start cassandra
+2

TCPView http://technet.microsoft.com/en-us/sysinternals/bb897437

TCPView

, - 7199

Right click and End Process

Now run Cassandra.bat and it should work.

0
source
  1. ps -ax | grep cassandra ps -ax | grep cassandranote the process id

  2. kill <pid>

  3. sudo./cassandra

0
source

I am writing the same thing, but for the Windows Developer command line: let's say the problem is with port 9042

netstat -ano | findstr: 9042

List all processes using port 9042

Taskkill / PID 237979 / F

here 237979 is a process using port 9042

0
source