cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sabou <>
Subject 2 problems running Cassandra as a developper
Date Sat, 14 Nov 2009 12:01:59 GMT

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
running  "org.apache.cassandra.service.CassandraDaemon" class  with
the following VM arguments : "-ea -Xmx1G -Dstorage-config=conf
- I get the following stack trace :

Exception encountered during startup.
	at org.apache.cassandra.db.ColumnFamilySerializer.readComparator(
	at org.apache.cassandra.db.ColumnFamilySerializer.deserialize(
	at org.apache.cassandra.db.RowMutationSerializer.defreezeTheMaps(
	at org.apache.cassandra.db.RowMutationSerializer.deserialize(
	at org.apache.cassandra.db.RowMutationSerializer.deserialize(
	at org.apache.cassandra.db.CommitLog.recover(
	at org.apache.cassandra.db.RecoveryManager.doRecovery(
	at org.apache.cassandra.service.CassandraDaemon.setup(
	at org.apache.cassandra.service.CassandraDaemon.main(


It seems that the RecoveryManager doesn't work as it was expected =>
if I comment the line 90 in
"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
	at org.apache.cassandra.db.Table$TableMetadata.<clinit>(
	at org.apache.cassandra.db.Table.<init>(
	at org.apache.cassandra.db.RemoveSuperColumnTest.testRemoveSuperColumn(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(
	at org.junit.internal.runners.statements.RunBefores.evaluate(
	at org.junit.internal.runners.statements.RunAfters.evaluate(
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
	at org.junit.runners.ParentRunner.runChildren(
	at org.junit.runners.ParentRunner.access$000(
	at org.junit.runners.ParentRunner$1.evaluate(
	at org.junit.internal.runners.statements.RunBefores.evaluate(
	at org.junit.internal.runners.statements.RunAfters.evaluate(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

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

View raw message