how to integrate cassandra with zookeeper to support transactions

前端 未结 4 1027
夕颜
夕颜 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 00:48

    Well, I'm not an exepert at this (far from it actually) but the way I see it, either you deploy some middleware made by yourself, in order to guarantee the specific properties you are looking for or you can just have Cassandra write data to auxilliary files and then copy them through the file system, since the copy function in Java works as an atomic operation.

    I don't know anything about the size of the data files you are considering so I don't really know if it is doable, however there might be a way to use this property through smaller bits of information and then combining them as a whole.

    Just my 2 cents...

提交回复
热议问题