Question

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..

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top