列族ID不匹配(找到cebcc380-72d4-11e7-9a6b-bd620b945799;预期为c05d6970-72d4-11e7-9a6b-bd620b945799) [英] Column family ID mismatch (found cebcc380-72d4-11e7-9a6b-bd620b945799; expected c05d6970-72d4-11e7-9a6b-bd620b945799)

查看:127
本文介绍了列族ID不匹配(找到cebcc380-72d4-11e7-9a6b-bd620b945799;预期为c05d6970-72d4-11e7-9a6b-bd620b945799)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决此错误
列族ID不匹配(发现cebcc380-72d4-11e7-9a6b-bd620b945799;预期为c05d6970-72d4-11e7-9a6b-bd620b945799)

How can i resolve this error
Column family ID mismatch (found cebcc380-72d4-11e7-9a6b-bd620b945799; expected 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]

推荐答案

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

Am using Apache-cassandra-3.11.0 installed in Fedora 25 and the error above keeps repeating itself , after many google searches , i did decided to tackle it , i configured ntp to help Synchronizing Clocks in the cassandra cluster and then after the error appeared on another terminal tab i did
execute ./bin/nodetool drain for cassandra to stop accepting requests and then i did ./bin/nodetool stopdaemon to gracefully kill cassandra and then restarted the cassandra server and then started the lagom project again and after doing this process twice the error dissappeared and my application was able to load successfully with both cassandra and it working in harmony .

这篇关于列族ID不匹配(找到cebcc380-72d4-11e7-9a6b-bd620b945799;预期为c05d6970-72d4-11e7-9a6b-bd620b945799)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆