Not enough replica available for query at consistency ONE (1 required but only 0 alive)

前端 未结 4 1467
囚心锁ツ
囚心锁ツ 2021-02-02 08:11

I have a Cassandra cluster with three nodes, two of which are up. They are all in the same DC. When my Java application goes to write to the cluster, I get an error in my applic

4条回答
  •  悲&欢浪女
    2021-02-02 08:29

    I hit this today because the datacenter field is case sensitive. If your dc is 'somedc01' this isn't going to work:

    replication = 
        {
            'class': 'NetworkTopologyStrategy',
            'SOMEDC01': '3'  #  <-- BOOM!
        }
        AND durable_writes = true;
    

    Anyway, it's not that intuitive, hope this helps.

提交回复
热议问题