cassandra 架构版本不匹配

kum*_*ath 3 cassandra cassandra-3.0

我试图放弃 Cassandra 的物化视图并面临以下问题:

> drop materialized view XXXXXXXXXXXXXXXX;
OperationTimedOut: errors={'10.10.101.10': 'Request timed out while waiting for 
schema agreement. See Session.execute[_async](timeout) and 
Cluster.max_schema_agreement_wait.'}, last_host=10.10.101.10
Warning: schema version mismatch detected; check the schema versions of your nodes
in system.local and system.peers.
Run Code Online (Sandbox Code Playgroud)

Aar*_*ron 5

要调查架构不一致,请尝试运行nodetool describecluster

$ nodetool describecluster
Cluster Information:
    Name: StackOverflowTest
    Snitch: org.apache.cassandra.locator.DynamicEndpointSnitch
    Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
    Schema versions:
        276ea081-1204-3bee-a92a-2171a68bd3a9: [10.1.2.3, 10.1.2.4, 10.6.1.4, 10.1.8.2, 10.1.8.7, 10.6.1.3]

        1f7d8b47-22d3-3210-b385-b2cdeb9c69e6: [10.6.1.5]
Run Code Online (Sandbox Code Playgroud)

请注意,我的大多数节点都同意第一个架构版本,但10.6.1.5有自己的架构版本。在这种情况下,请尝试正常重启违规节点的 Cassandra 进程(10.6.1.5在本例中)。当节点恢复时,它将协商架构版本以解决问题。