Vivek Soni
Vivek Soni

Reputation: 1

How to Add LOCAL_QUORUM consistency on Cassandra Cluster side

There is any option to add default consistency level LOCAL_QUORUM to side or cassandra.ymal file.

Upvotes: 0

Views: 118

Answers (1)

Fundhor
Fundhor

Reputation: 3577

Using JAVA :

    QueryOptions option = new QueryOptions();
    option.setConsistencyLevel(ConsistencyLevel.LOCAL_QUORUM);
    Cluster.Builder clusterBuilder = Cluster.builder().withQueryOptions(option);

Upvotes: 1

Related Questions