Hi, I'am new to Cassandra. I'am trying to run it in Eclipse and I seems to fail because some trivial reasons.
I have an Ubuntu 9.04 and I use MyEclipse. I have checked out Cassandra from SVN and after I have installed thrift I could run the nosetests script succesfully. I have imported the trunk folder into MyEclipse with the following steps : (1) runned "mvn eclipse:eclipse" in the trunk folder (2) imported the project as an existing maven project and everything is ok up to here. I want to do two things now with the Cassandra project (that don't work) in MyEclipse : (1) I want to run it from main : - I followed the IDE instructions from http://wiki.apache.org/cassandra/HowToContribute running "org.apache.cassandra.service.CassandraDaemon" class with the following VM arguments : "-ea -Xmx1G -Dstorage-config=conf -Dcassandra-foreground" - I get the following stack trace : -------------------------------------------- Exception encountered during startup. java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:180) at java.io.DataInputStream.readUTF(DataInputStream.java:592) at java.io.DataInputStream.readUTF(DataInputStream.java:547) at org.apache.cassandra.db.ColumnFamilySerializer.readComparator(ColumnFamilySerializer.java:115) at org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySerializer.java:98) at org.apache.cassandra.db.RowMutationSerializer.defreezeTheMaps(RowMutation.java:310) at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMutation.java:320) at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMutation.java:1) at org.apache.cassandra.db.CommitLog.recover(CommitLog.java:327) at org.apache.cassandra.db.RecoveryManager.doRecovery(RecoveryManager.java:65) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:90) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:166) ---------------------------------------------- It seems that the RecoveryManager doesn't work as it was expected => if I comment the line 90 in CassandraDaemon.java "recoveryMgr.doRecovery();" everything starts up correctly. I think I'am missing some config file or something similar. Can you please tell me what should I do? (2) I want to run the test suite : - When I run the test suite many tests fail with something like : ----------------------------------------------- java.lang.NoClassDefFoundError: Could not initialize class org.apache.cassandra.config.DatabaseDescriptor at org.apache.cassandra.db.Table$TableMetadata.<clinit>(Table.java:70) at org.apache.cassandra.db.Table.<init>(Table.java:354) at org.apache.cassandra.db.Table.open(Table.java:184) at org.apache.cassandra.db.RemoveSuperColumnTest.testRemoveSuperColumn(RemoveSuperColumnTest.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) ----------------------------------------------- I think that this is also my fault for not putting the right config file in the right place. Can you please tell me what to do? best regards Paul.