3

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 api If any one know how to do it kindly answer it . I have to implement..

gangatharan
  • 781
  • 1
  • 12
  • 28

1 Answers1

3

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.

sbridges
  • 24,960
  • 4
  • 64
  • 71