Its not clear to me how you are starting the daemon. You mention Eclipse - do you have Cassandra embedded in an Eclipse project? cassandra.yaml might not be read correctly. Make sure its on the class path, i have it in src/main/resources and it gets picked up from there just fine ( although i only ever use it in my unit tests )
CassandraDaemon cassandra = new CassandraDaemon();cassandra.init(null);cassandra.start();
It might also be worthwhile to inspect log output from org.apache.cassandra. Put this in your log4j.properties
log4j.logger.org.apache.cassandra = FINEST, cassandra# Cassandra loglog4j.appender.cassandra = org.apache.log4j.RollingFileAppenderlog4j.appender.cassandra.File = target/log/cassandra.loglog4j.appender.cassandra.MaxFileSize = 10MBlog4j.appender.cassandra.MaxBackupIndex = 5log4j.appender.cassandra.layout = org.apache.log4j.PatternLayoutlog4j.appender.cassandra.layout.ConversionPattern = %d %p %c - %m%n
Solutions Architect, IgnitionOne | 1831 Diegem E.Mommaertslaan 20A
M: +32 493 05 50 88 | Skype: sandrew84
On 25 Dec 2012, at 22:56, Bob Futrelle <firstname.lastname@example.org> wrote:
I have been using cqlsh (and --cql3) successfully for a few weeks.But yesterday it stopped working, with the all too familiar,
"Connection error: Could not connect to localhost:9160"
Still got the same message, 9160, after I changed the rpc_port in the yaml file to 9161 or 9159.
I recently installed the Maven plugin in Eclipse, so I thought that might be the problem. (My prototyping/research code is so simple that I've used Eclipse's builds with no problems for years. Maven would be overkill.)
I reread the various Cassandra docs, reinstalled Cassandra (apache-cassandra-1.1.7) recreated the var/lib directories, rebooted my machine, restarted Eclipse, that's about all I could think of. Eclipse was going to be the next stage for me after various cqlsh experiments, so it shouldn't have any effect on the CLI. I'm no expert on ports and the like. I don't do web servers/clients. My expertise is in the Java/Swing systems I build for NLP research. Now that I'm retired and working from home, I can't just walk down the hall and talk with our systems experts.
- Bob Futrelle