Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problem on starting cassandra

Tags:

java

cassandra

I download apache-cassandra-0.8.5 for ubuntu and extract it.I read the readme file. I try bellow command in shell:

bin/cassandra -f 

But it said: Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: node24.nise.local: node24.nise.local

what should I do?

like image 248
Babak Mehrabi Avatar asked Sep 21 '11 08:09

Babak Mehrabi


People also ask

How do you troubleshoot Cassandra?

Identify the problematic node. The first step in troubleshooting is to identify where the problem is. With the help of client logs, Cassandra logs, and other tools provided by Cassandra we have to identify if the problem is in client or any one node, or a subset of nodes.


2 Answers

What does your /etc/hosts file contain? Maybe add localhost and node24.nise.local as a name at the 127.0.0.1 line.

like image 71
Dunaril Avatar answered Sep 23 '22 04:09

Dunaril


Yes. It works once you add domain name in local host entry /etc/hosts

127.0.0.1  testdomain  localhost.localdomain localhost 
like image 32
amber_linux Avatar answered Sep 22 '22 04:09

amber_linux