Cassandra nodetool详解

2024-06-02 16:58
文章标签 详解 cassandra nodetool

本文主要是介绍Cassandra nodetool详解,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

Cassandra自带一个nodetool工具,安装目录/bin/nodetool

 

nodetool help:帮助信息

[cassandra@node3 bin]$ ./nodetool help
usage: nodetool [(-p <port> | --port <port>)] [(-h <host> | --host <host>)][(-pwf <passwordFilePath> | --password-file <passwordFilePath>)][(-pw <password> | --password <password>)][(-u <username> | --username <username>)] <command> [<args>]The most commonly used nodetool commands are:assassinate                  强制删除节点bootstrap                    Monitor/manage node's bootstrap processcleanup                      触发不再属于某个节点的键的立即清除。默认情况下,清除所有键空间(常规合并过程最终总会删除这些数据)clearsnapshot                清楚快照compact                      对一个或多个表强制(主)压缩,或对给定的SSTables强制用户定义的压缩compactionhistory            打印压缩的历史信息compactionstats              打印压缩的统计信息decommission                 退服节点,让该节点不再提供服务(退服节点执行)describecluster              打印集群信息describering                 Shows the token ranges info of a given keyspacedisableautocompaction        为给定的键空间和表关闭自动压缩disablebackup                禁用增量备份disablebinary                Disable native transport (binary protocol)disablegossip                Disable gossip (effectively marking the node down)disablehandoff               禁止存储和传递提示移交disablehintsfordc            禁止向数据中心传输提示移交disablethrift                Disable thrift serverdrain                        停止监听来自客户端和其他节点的命令。刷新所有表enableautocompaction         为给定的键空间和表启用自动压缩enablebackup                 开启增量备份enablebinary                 Reenable native transport (binary protocol)enablegossip                 Reenable gossipenablehandoff                重新启用当前节点上存储和传递提示移交enablehintsfordc             为以前禁用的数据中心开启提示移交enablethrift                 Reenable thrift serverfailuredetector              Shows the failure detector information for the clusterflush                        刷新memtable到sstable。flush keyspace [table]garbagecollect               Remove deleted data from one or more tablesgcstats                      Print GC Statisticsgetcompactionthreshold       查看表的合并阈值getcompactionthroughput      查看系统中压缩/合并的吞吐量上限 MB/sgetconcurrentcompactors      Get the number of concurrent compactors in the system.getendpoints                 Print the end points that owns the keygetinterdcstreamthroughput   Print the Mb/s throughput cap for inter-datacenter streaming in the systemgetlogginglevels             打印日志级别getsstables                  Print the sstable filenames that own the keygetstreamthroughput          Print the Mb/s throughput cap for streaming in the systemgettimeout                   Print the timeout of the given type in msgettraceprobability          Print the current trace probability valuegossipinfo                   打印这个节点通过gossip向其他节点传递的参数help                         打印帮助信息info                         打印节点信息invalidatecountercache       清除计数器缓存invalidatekeycache           清除键缓存invalidaterowcache           清除行缓存join                         Join the ringlistsnapshots                显示快照move                         重新分配token。 move +节点开始令牌  netstats                     Print network information on provided host (connecting node by default)pausehandoff                 暂停提示移交传输进程proxyhistograms              显示了读请求、写请求和区间请求的延迟。在这里所请求的节点作为协调器。rangekeysample               Shows the sampled keys held across all keyspacesrebuild                      从其他节点重建数据rebuild_index                重建二级索引,与修复一样,CPU和I/O开销很大refresh                      在不重启的情况下将新放置的SSTables加载到系统中 refreshsizeestimates         Refresh system.size_estimatesreloadlocalschema            Reload local node schema from system tablesreloadtriggers               Reload trigger classesrelocatesstables             Relocates sstables to the correct diskremovenode                   移除节点repair                       通过逆熵修复表replaybatchlog               Kick off batchlog replay and wait for finishresetlocalschema             Reset node's local schema and resyncresumehandoff                Resume提示移交传输进程ring                         查看token环信息scrub                        Scrub (rebuild sstables for) one or more tablessetcachecapacity             设置全局键、行和计数器缓存容量(以MB为单位)setcachekeystosave           覆盖为保持缓存元素所配置的设置,即一个文件中要保持多少个键缓存和行缓存setcompactionthreshold       设置合并阈值的最小和最大值setcompactionthroughput      为系统中的压缩/合并设吞吐量上限MB/s,或设置0以禁用节流setconcurrentcompactors      Set number of concurrent compactors in the system.sethintedhandoffthrottlekb   控制提示传送时使用的带宽setinterdcstreamthroughput   Set the Mb/s throughput cap for inter-datacenter streaming in the system, or 0 to disable throttlingsetlogginglevel              动态设置日志级别setstreamthroughput          Set the Mb/s throughput cap for streaming in the system, or 0 to disable throttlingsettimeout                   Set the specified timeout in ms, or 0 to disable timeoutsettraceprobability          设置将任何给定请求跟踪到值的概率。0为禁用,1为所有请求启用,0为默认值snapshot                     创建快照status                       打印集群信息statusbackup                 查看增量备份状态statusbinary                 Status of native transport (binary protocol)statusgossip                 打印gossip状态statushandoff                打印当前节点提交移交状态statusthrift                 打印thrift服务状态stop                         Stop compactionstopdaemon                   Stop cassandra daemontablehistograms              打印给定表的统计直方图tablestats                   打印表统计信息toppartitions                Sample and print the most active partitions for a given column familytpstats                      打印线程池统计信息truncatehints                截断本地节点上的所有提示移交,或截断指定端点的提示移交.upgradesstables              升级操作之后运行,将存储的数据文件转换为最新的格式。verify                       Verify (check data checksum for) one or more tablesversion                      打印cassandra版本viewbuildstatus              Show progress of a materialized view buildgetmaxhintwindow        4.0新增,打印最大的提示移交窗口handoffwindow          打印当前提示移交的切换窗口
    setmaxhintwindow	         设置指定的最大提示窗口

 

See 'nodetool help <command>' for more information on a specific command.

这篇关于Cassandra nodetool详解的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1024550

相关文章

Mysql数据库聚簇索引与非聚簇索引举例详解

《Mysql数据库聚簇索引与非聚簇索引举例详解》在MySQL中聚簇索引和非聚簇索引是两种常见的索引结构,它们的主要区别在于数据的存储方式和索引的组织方式,:本文主要介绍Mysql数据库聚簇索引与非... 目录前言一、核心概念与本质区别二、聚簇索引(Clustered Index)1. 实现原理(以 Inno

使用python生成固定格式序号的方法详解

《使用python生成固定格式序号的方法详解》这篇文章主要为大家详细介绍了如何使用python生成固定格式序号,文中的示例代码讲解详细,具有一定的借鉴价值,有需要的小伙伴可以参考一下... 目录生成结果验证完整生成代码扩展说明1. 保存到文本文件2. 转换为jsON格式3. 处理特殊序号格式(如带圈数字)4

MySQL数据库双机热备的配置方法详解

《MySQL数据库双机热备的配置方法详解》在企业级应用中,数据库的高可用性和数据的安全性是至关重要的,MySQL作为最流行的开源关系型数据库管理系统之一,提供了多种方式来实现高可用性,其中双机热备(M... 目录1. 环境准备1.1 安装mysql1.2 配置MySQL1.2.1 主服务器配置1.2.2 从

Linux kill正在执行的后台任务 kill进程组使用详解

《Linuxkill正在执行的后台任务kill进程组使用详解》文章介绍了两个脚本的功能和区别,以及执行这些脚本时遇到的进程管理问题,通过查看进程树、使用`kill`命令和`lsof`命令,分析了子... 目录零. 用到的命令一. 待执行的脚本二. 执行含子进程的脚本,并kill2.1 进程查看2.2 遇到的

MyBatis常用XML语法详解

《MyBatis常用XML语法详解》文章介绍了MyBatis常用XML语法,包括结果映射、查询语句、插入语句、更新语句、删除语句、动态SQL标签以及ehcache.xml文件的使用,感兴趣的朋友跟随小... 目录1、定义结果映射2、查询语句3、插入语句4、更新语句5、删除语句6、动态 SQL 标签7、ehc

详解SpringBoot+Ehcache使用示例

《详解SpringBoot+Ehcache使用示例》本文介绍了SpringBoot中配置Ehcache、自定义get/set方式,并实际使用缓存的过程,文中通过示例代码介绍的非常详细,对大家的学习或者... 目录摘要概念内存与磁盘持久化存储:配置灵活性:编码示例引入依赖:配置ehcache.XML文件:配置

从基础到高级详解Go语言中错误处理的实践指南

《从基础到高级详解Go语言中错误处理的实践指南》Go语言采用了一种独特而明确的错误处理哲学,与其他主流编程语言形成鲜明对比,本文将为大家详细介绍Go语言中错误处理详细方法,希望对大家有所帮助... 目录1 Go 错误处理哲学与核心机制1.1 错误接口设计1.2 错误与异常的区别2 错误创建与检查2.1 基础

k8s按需创建PV和使用PVC详解

《k8s按需创建PV和使用PVC详解》Kubernetes中,PV和PVC用于管理持久存储,StorageClass实现动态PV分配,PVC声明存储需求并绑定PV,通过kubectl验证状态,注意回收... 目录1.按需创建 PV(使用 StorageClass)创建 StorageClass2.创建 PV

Python版本信息获取方法详解与实战

《Python版本信息获取方法详解与实战》在Python开发中,获取Python版本号是调试、兼容性检查和版本控制的重要基础操作,本文详细介绍了如何使用sys和platform模块获取Python的主... 目录1. python版本号获取基础2. 使用sys模块获取版本信息2.1 sys模块概述2.1.1

一文详解Python如何开发游戏

《一文详解Python如何开发游戏》Python是一种非常流行的编程语言,也可以用来开发游戏模组,:本文主要介绍Python如何开发游戏的相关资料,文中通过代码介绍的非常详细,需要的朋友可以参考下... 目录一、python简介二、Python 开发 2D 游戏的优劣势优势缺点三、Python 开发 3D