我无法在Eclipse中启动Cassandra Server(Unknown Commitlog version 4)

时间:2013-11-26 14:34:09

标签: eclipse cassandra

我正试图在日食中运行Cassandra,但我得到了这个异常

java.lang.IllegalStateException: Unknown commitlog version 4Exception encountered during startup: Unknown commitlog version 4

at org.apache.cassandra.db.commitlog.CommitLogDescriptor.getMessagingVersion(CommitLogDescriptor.java:81)
at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:118)
at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:93)
at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:146)
at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:126)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:305)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:461)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:504)

我做错了什么?

1 个答案:

答案 0 :(得分:9)

听起来像版本不匹配 - 可能是降级Cassandra [?]

你在eclipse中使用的是什么版本的Cassandra?此外,您是否有另一个版本运行并共享相同的提交日志?您可能从一个版本的cassandra中读取了另一个版本的提交日志。 (那是我的经历。)

添加解决方案,由@LyubenTodorov在评论中提供:

  

要解决此问题,请更改您的commitlog_directory或清空当前的commitlog目录(默认为/ var / lib / cassandra / commitlog)