how to integrate cassandra with zookeeper to support transactions

前端 未结 4 1001
夕颜
夕颜 2021-01-02 00:45

I have a Cassandra cluster and Zookeeper server installed. Now I want to support transactions in cassandra using zookeeper. How do i do that.

Zookeeper creates znod

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-02 01:02

    There is a BATCH feature for Cassandra's CQL3 (Cassandra 1.2 is the formal version that released CQL3), which allegedly can atomically apply all the updates in the BATCH as one unit all-or-nothing.

    This does not mean you can rollback a successfully executed BATCH as an RDBMS could do, that would have to be manually done.

    Depending on the consistency and preferences you provide to the BATCH statement, guarantees of atomicity of the updates can be increased or decreased to some degree with the UNLOGGED option.

    http://www.datastax.com/docs/1.2/cql_cli/cql/BATCH

提交回复
热议问题