如何解决列族id不匹配错误

pzfprimi  于 2021-06-09  发布在  Cassandra
关注(0)|答案(0)|浏览(202)
Caused by: org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found d58d5af0-110d-11eb-9d7e-01a6151598cb; expected d550a010-110d-11eb-9d7e-01a6151598cb)
    at org.apache.cassandra.config.CFMetaData.validateCompatibility(CFMetaData.java:941) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:895) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at org.apache.cassandra.config.Schema.updateTable(Schema.java:687) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at org.apache.cassandra.schema.SchemaKeyspace.updateKeyspace(SchemaKeyspace.java:1474) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:1430) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:1399) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at org.apache.cassandra.schema.SchemaKeyspace.mergeSchemaAndAnnounceVersion(SchemaKeyspace.java:1376) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at org.apache.cassandra.service.MigrationManager$1.runMayThrow(MigrationManager.java:588) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[cassandra-bundle.jar:0.102-SNAPSHOT]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_231]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_231]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_231]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_231]

每次使用sbt cleanrunall时,terminal都会显示上述错误。当我使用sbt时,一切都运行得很好。所以我的问题是,在使用sbt clean runall时如何解决上述异常

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题