cassandra snapshot without nodetool but by java api only

前端 未结 1 1789
隐瞒了意图╮
隐瞒了意图╮ 2021-01-21 08:52

How to take cassandra snapshot without nodetool but by java api only? I need to take snapshot of keyspace in cassandra by not using nodetool utility. I have to do it by java ap

1条回答
  •  后悔当初
    2021-01-21 09:32

    You can't take a snapshot using the thrift API, but you can take a snapshot using JMX, which is how the nodetool command works. Look at the node tool source here, in particular look at the handleSnapshot method.

    0 讨论(0)
提交回复
热议问题