列家族ID不匹配(找到cebcc380-72d4-11e7-9a6b-bd620b945799;预计c05d6970-72d4-11e7-9a6b-bd620b945799)

时间:2017-07-27 14:15:14

标签: cassandra polymorphic-associations akka-persistence lagom

我如何解决此错误
 列家族ID不匹配(找到cebcc380-72d4-11e7-9a6b-bd620b945799;预计c05d6970-72d4-11e7-9a6b-bd620b945799)

    Caused by: java.util.concurrent.ExecutionException: org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found cebcc380-72d4-11e7-9a6b-bd620b945799; expected c05d6970-72d4-11e7-9a6b-bd620b945799)
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_131]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_131]
    at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:397) ~[apache-cassandra-3.11.0.jar:3.11.0]
    ... 20 common frames omitted
Caused by: org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found cebcc380-72d4-11e7-9a6b-bd620b945799; expected c05d6970-72d4-11e7-9a6b-bd620b945799)
    at org.apache.cassandra.config.CFMetaData.validateCompatibility(CFMetaData.java:808) ~[apache-cassandra-3.11.0.jar:3.11.0]
    at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:770) ~[apache-cassandra-3.11.0.jar:3.11.0]
    at org.apache.cassandra.config.Schema.updateTable(Schema.java:621) ~[apache-cassandra-3.11.0.jar:3.11.0]
    at org.apache.cassandra.schema.SchemaKeyspace.updateKeyspace(SchemaKeyspace.java:1430) ~[apache-cassandra-3.11.0.jar:3.11.0]
    at org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:1386) ~[apache-cassandra-3.11.0.jar:3.11.0]
    at org.apache.cassandra.schema.SchemaKeyspace.mergeSchemaAndAnnounceVersion(SchemaKeyspace.java:1336) ~[apache-cassandra-3.11.0.jar:3.11.0]
    at org.apache.cassandra.service.MigrationManager$1.runMayThrow(MigrationManager.java:547) ~[apache-cassandra-3.11.0.jar:3.11.0]
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[apache-cassandra-3.11.0.jar:3.11.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_131]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_131]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_131]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_131]
    at org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:81) ~[apache-cassandra-3.11.0.jar:3.11.0]

1 个答案:

答案 0 :(得分:2)

我在Fedora 25中使用Apache-cassandra-3.11.0并且上面的错误不断重复,经过多次谷歌搜索,我确实决定解决它,我配置了ntp以帮助在cassandra集群中同步时钟然后错误出现在我做的另一个终端选项卡上 为cassandra执行./bin/nodetool drain以停止接受请求,然后我./bin/nodetool stopdaemon优先杀死cassandra,然后重新启动cassandra服务器,然后再次启动lagom项目,在执行此过程两次后,错误消失了,我的应用程序能够成功加载cassandra和它协调工作。