可以选择将默认一致性级别LOCAL_QUORUM添加到side或cassandra.ymal文件中。
答案 0 :(得分:0)
使用JAVA:
QueryOptions option = new QueryOptions();
option.setConsistencyLevel(ConsistencyLevel.LOCAL_QUORUM);
Cluster.Builder clusterBuilder = Cluster.builder().withQueryOptions(option);