문제

I'm trying to setup a simple and "lightweight" development/testing environment for my application where I could run single node Cassandra cluster with key space where 'replication_factor':'1'.

But when I do CQL query with QUORUM consistecy then I still get an error for not having two nodes in my cluster:

com.datastax.driver.core.exceptions.UnavailableException: 
Not enough replica available for query at consistency QUORUM (2 required but only 1 alive)

Any way to allow queries to work with QUORUM consistency level in this one node setup or is only fallback to use ONE (or add second node to cluster)?

도움이 되었습니까?

해결책

You must have changed it to a replication_factor of 2 or 3 by mistake; QUORUM of 1 is 1.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top