Is your /etc/hosts correct? Does it have an entry for beta.jokefire.com

What if you replace  beta.jokefire.com with the ip address, can you connect?

Can you telnet to beta.jokefire.com port  9160?


Look in the system log and see if you have a log entry like

INFO [main] ????  CassandraDaemon.java (line 124) Binding thrift service to /beta.jokefire.com:9160

There could be many reasons for this...

Best,
Amit



On Aug 7, 2012, at 5:10 PM, Tim Dunphy wrote:

Thanks! That got the value inserted properly

[default@system] set  LocationInfo[utf8('L')][utf8('Test Cluster')]=utf8('Jokefire Cluster');  
Value inserted.
Elapsed time: 5 msec(s).


But if I go into the yaml file and set the cluster name 

# The name of the cluster. This is mainly used to prevent machines in
# one logical cluster from joining another.
cluster_name: 'Jokefire Cluster'

and have the listen_address and rpc_address set to the folloiwng

# Setting this to 0.0.0.0 is always wrong.
listen_address: beta.jokefire.com

# Leaving this blank has the same effect it does for ListenAddress,
# (i.e. it will be based on the configured hostname of the node).
rpc_address: beta.jokefire.com

And restart cassandra (I have it running as a service) it looks like it comes back up. I see it in the process list:

[root@beta:~] #ps -ef | grep cassandra | head -25
root     10692 10691  0 17:38 pts/3    00:00:00 /bin/sh /etc/alternatives/cassandrahome/bin/cassandra-cli
root     10694 10692  0 17:38 pts/3    00:00:02 /etc/alternatives/javahome/bin/java -ea -cp /etc/alternatives/cassandrahome/conf:/etc/alternatives/cassandrahome/build/classes/main:/etc/alternatives/cassandrahome/build/classes/thrift:/etc/alternatives/cassandrahome/lib/antlr-3.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.0.10.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.0.8.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.0.9.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.1.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.1.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.1.3.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.0.10.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.0.8.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.0.9.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.1.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.1.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.1.3.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.0.10.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.0.8.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.0.9.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.1.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.1.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.1.3.jar:/etc/alternatives/cassandrahome/lib/avro-1.4.0-fixes.jar:/etc/alternatives/cassandrahome/lib/avro-1.4.0-sources-fixes.jar:/etc/alternatives/cassandrahome/lib/commons-cli-1.1.jar:/etc/alternatives/cassandrahome/lib/commons-codec-1.2.jar:/etc/alternatives/cassandrahome/lib/commons-lang-2.4.jar:/etc/alternatives/cassandrahome/lib/compress-lzf-0.8.4.jar:/etc/alternatives/cassandrahome/lib/concurrentlinkedhashmap-lru-1.2.jar:/etc/alternatives/cassandrahome/lib/concurrentlinkedhashmap-lru-1.3.jar:/etc/alternatives/cassandrahome/lib/guava-r08.jar:/etc/alternatives/cassandrahome/lib/high-scale-lib-1.1.2.jar:/etc/alternatives/cassandrahome/lib/jackson-core-asl-1.4.0.jar:/etc/alternatives/cassandrahome/lib/jackson-core-asl-1.9.2.jar:/etc/alternatives/cassandrahome/lib/jackson-mapper-asl-1.4.0.jar:/etc/alternatives/cassandrahome/lib/jackson-mapper-asl-1.9.2.jar:/etc/alternatives/cassandrahome/lib/jamm-0.2.5.jar:/etc/alternatives/cassandrahome/lib/jline-0.9.94.jar:/etc/alternatives/cassandrahome/lib/json-simple-1.1.jar:/etc/alternatives/cassandrahome/lib/libthrift-0.6.jar:/etc/alternatives/cassandrahome/lib/libthrift-0.7.0.jar:/etc/alternatives/cassandrahome/lib/log4j-1.2.16.jar:/etc/alternatives/cassandrahome/lib/metrics-core-2.0.3.jar:/etc/alternatives/cassandrahome/lib/servlet-api-2.5-20081211.jar:/etc/alternatives/cassandrahome/lib/slf4j-api-1.6.1.jar:/etc/alternatives/cassandrahome/lib/slf4j-log4j12-1.6.1.jar:/etc/alternatives/cassandrahome/lib/snakeyaml-1.6.jar:/etc/alternatives/cassandrahome/lib/snappy-java-1.0.4.1.jar:/etc/alternatives/cassandrahome/lib/snaptree-0.1.jar -Xmx256M -Dlog4j.configuration=log4j-tools.properties org.apache.cassandra.cli.CliMain
root     13007 12979  0 11:15 pts/2    00:00:00 /bin/sh /etc/alternatives/cassandrahome/bin/cassandra-cli
root     13009 13007  0 11:15 pts/2    00:00:01 /etc/alternatives/javahome/bin/java -ea -cp /etc/alternatives/cassandrahome/conf:/etc/alternatives/cassandrahome/build/classes/main:/etc/alternatives/cassandrahome/build/classes/thrift:/etc/alternatives/cassandrahome/lib/antlr-3.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.0.10.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.0.8.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.0.9.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.1.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.1.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-1.1.3.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.0.10.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.0.8.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.0.9.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.1.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.1.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-clientutil-1.1.3.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.0.10.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.0.8.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.0.9.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.1.1.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.1.2.jar:/etc/alternatives/cassandrahome/lib/apache-cassandra-thrift-1.1.3.jar:/etc/alternatives/cassandrahome/lib/avro-1.4.0-fixes.jar:/etc/alternatives/cassandrahome/lib/avro-1.4.0-sources-fixes.jar:/etc/alternatives/cassandrahome/lib/commons-cli-1.1.jar:/etc/alternatives/cassandrahome/lib/commons-codec-1.2.jar:/etc/alternatives/cassandrahome/lib/commons-lang-2.4.jar:/etc/alternatives/cassandrahome/lib/compress-lzf-0.8.4.jar:/etc/alternatives/cassandrahome/lib/concurrentlinkedhashmap-lru-1.2.jar:/etc/alternatives/cassandrahome/lib/concurrentlinkedhashmap-lru-1.3.jar:/etc/alternatives/cassandrahome/lib/guava-r08.jar:/etc/alternatives/cassandrahome/lib/high-scale-lib-1.1.2.jar:/etc/alternatives/cassandrahome/lib/jackson-core-asl-1.4.0.jar:/etc/alternatives/cassandrahome/lib/jackson-core-asl-1.9.2.jar:/etc/alternatives/cassandrahome/lib/jackson-mapper-asl-1.4.0.jar:/etc/alternatives/cassandrahome/lib/jackson-mapper-asl-1.9.2.jar:/etc/alternatives/cassandrahome/lib/jamm-0.2.5.jar:/etc/alternatives/cassandrahome/lib/jline-0.9.94.jar:/etc/alternatives/cassandrahome/lib/json-simple-1.1.jar:/etc/alternatives/cassandrahome/lib/libthrift-0.6.jar:/etc/alternatives/cassandrahome/lib/libthrift-0.7.0.jar:/etc/alternatives/cassandrahome/lib/log4j-1.2.16.jar:/etc/alternatives/cassandrahome/lib/metrics-core-2.0.3.jar:/etc/alternatives/cassandrahome/lib/servlet-api-2.5-20081211.jar:/etc/alternatives/cassandrahome/lib/slf4j-api-1.6.1.jar:/etc/alternatives/cassandrahome/lib/slf4j-log4j12-1.6.1.jar:/etc/alternatives/cassandrahome/lib/snakeyaml-1.6.jar:/etc/alternatives/cassandrahome/lib/snappy-java-1.0.4.1.jar:/etc/alternatives/cassandrahome/lib/snaptree-0.1.jar -Xmx256M -Dlog4j.configuration=log4j-tools.properties org.apache.cassandra.cli.CliMain
root     23985 20252  0 20:09 pts/4    00:00:00 grep cassandra

And it looks like it's listening:

[root@beta:~] #lsof -i :9160
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
java    10694 root   52u  IPv6 5340181      0t0  TCP beta.jokefire.com:56612->beta.jokefire.com:netlock1 (CLOSE_WAIT)
java    13009 root   52u  IPv6 5253222      0t0  TCP beta.jokefire.com:54197->beta.jokefire.com:netlock1 (CLOSE_WAIT)

But it throws an exception when I try to connect to it again:

[default@unknown] connect beta.jokefire.com/9160;
org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused
        at org.apache.thrift.transport.TSocket.open(TSocket.java:183)
        at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81)
        at org.apache.cassandra.cli.CliMain.connect(CliMain.java:80)
        at org.apache.cassandra.cli.CliClient.executeConnect(CliClient.java:2207)
        at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:266)
        at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:220)
        at org.apache.cassandra.cli.CliMain.main(CliMain.java:348)
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
        at java.net.Socket.connect(Socket.java:579)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:178)
        ... 6 more
Exception connecting to beta.jokefire.com/9160. Reason: Connection refused.


Just wondering if I might be missing something?

Thanks