cassandra快照没有nodetool,但只有java api [英] cassandra snapshot without nodetool but by java api only
本文介绍了cassandra快照没有nodetool,但只有java api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用cassandra快照没有nodetool,但只有java api?我需要通过不使用nodetool实用程序在cassandra中获取keyspace的快照。我必须这样做通过java api
如果有人知道如何做它好心回答它。我必须实现..
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..
推荐答案
您不能使用thrift API拍摄快照, JMX,这是nodetool命令的工作原理。查看节点工具源这里,特别是查看 handleSnapshot 方法。
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.
这篇关于cassandra快照没有nodetool,但只有java api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文