Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra Start up

I am new to the Cassandra database. I have downloaded Cassandra and set the JAVA_HOME. When I try to run, 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 anyone assist me with this issue?

like image 222
Dalee Avatar asked Feb 03 '13 14:02

Dalee


People also ask

Does Netflix still use Cassandra?

Takeaway. Netflix is using Cassandra on AWS as a key infrastructure component of its globally distributed streaming product.

Is Cassandra still used at Facebook?

Though Facebook has all but abandoned Cassandra, the technology has gone on to power critical web infrastructure at companies like Twitter, Netflix, even Apple. And DataStax has built a version of the tool for all sorts of other businesses.

Why do companies use Cassandra?

Cassandra's benefits include: Open source: Increases innovation, speed of implementation, flexibility, and extensibility. More cost effective, while avoiding vendor lock-in. Handles a high volume of data with ease: Built to handle a massive amount of data across many servers.


2 Answers

You could check if cassandra is running by checking the port

lsof -i :9160

if you got a result back that means it is running

If you want to kill it , do kill -9 "then the pid you got from the last step"

if you want to see the ongoing log run

cassandra -f when you start cassandra
like image 52
Maged Makled Avatar answered Oct 18 '22 15:10

Maged Makled


For those who are facing the same problem using Ubuntu OS a solution can be to kill CassandraDaemon :

pkill -f CassandraDaemon

When you launch for the first time the command "cassandra -f" background daemon is running so Ctrl^C doesn't stop the process.

like image 25
Day Avatar answered Oct 18 '22 16:10

Day