没有nodetool但仅通过java api的cassandra快照 [英] cassandra snapshot without nodetool but by java api only

查看:23
本文介绍了没有nodetool但仅通过java api的cassandra快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在没有 nodetool 的情况下仅通过 java api 获取 cassandra 快照?我需要通过不使用 nodetool 实用程序在 cassandra 中拍摄密钥空间的快照.我必须通过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 命令的工作原理.查看node工具源码这里,特别看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.

这篇关于没有nodetool但仅通过java api的cassandra快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆