incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Futrelle <bob.futre...@gmail.com>
Subject Cassandra startup port problem, apache-cassandra-0.7.3 on Snow Leopard.
Date Fri, 11 Mar 2011 02:10:37 GMT
After a reboot, cassandra spits out many lines on startup but then appears
to stall.

Worse, trying to run cassandra a second time stops immediately because of a
port problem:

apache-cassandra-0.7.3: sudo ./bin/cassandra -f -p pidfile
Password:
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port
already in use: 8080; nested exception is:
java.net.BindException: Address already in use

I have seen some discussions of the problem but have not found a solution.


ADDITIONAL QUESTIONS:

I neve explicitly installed Thrift. Should I?

How do I know that cassandra.in.sh is being used?
Assuming it is, can I change the port in that file?
If so, how?

Do any of these variables need to be set?

CASSANDRA_HOME
CASSANDRA_CONF

and is this necessary?

for jar in $CASSANDRA_HOME/lib/*.jar; do
    CLASSPATH=$CLASSPATH:$jar
done


Java:

I noticed that
$JAVA_HOME = /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home

but on the command line I get:

apache-cassandra-0.7.3: java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

Should probably change $JAVA_HOME to point to 1.6

I get the digest.  Feel free to cc me at bob.futrelle@gmail.com

 - Bob

   Northeastern U.
   College of Computer and Information Science

Mime
View raw message