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 中的 JSON 查询案例详解

《MySQL中的JSON查询案例详解》:本文主要介绍MySQL的JSON查询的相关知识,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录mysql 的 jsON 路径格式基本结构路径组件详解特殊语法元素实际示例简单路径复杂路径简写操作符注意MySQL 的 J

Python ZIP文件操作技巧详解

《PythonZIP文件操作技巧详解》在数据处理和系统开发中,ZIP文件操作是开发者必须掌握的核心技能,Python标准库提供的zipfile模块以简洁的API和跨平台特性,成为处理ZIP文件的首选... 目录一、ZIP文件操作基础三板斧1.1 创建压缩包1.2 解压操作1.3 文件遍历与信息获取二、进阶技

一文详解Java异常处理你都了解哪些知识

《一文详解Java异常处理你都了解哪些知识》:本文主要介绍Java异常处理的相关资料,包括异常的分类、捕获和处理异常的语法、常见的异常类型以及自定义异常的实现,文中通过代码介绍的非常详细,需要的朋... 目录前言一、什么是异常二、异常的分类2.1 受检异常2.2 非受检异常三、异常处理的语法3.1 try-

Java中的@SneakyThrows注解用法详解

《Java中的@SneakyThrows注解用法详解》:本文主要介绍Java中的@SneakyThrows注解用法的相关资料,Lombok的@SneakyThrows注解简化了Java方法中的异常... 目录前言一、@SneakyThrows 简介1.1 什么是 Lombok?二、@SneakyThrows

Java中字符串转时间与时间转字符串的操作详解

《Java中字符串转时间与时间转字符串的操作详解》Java的java.time包提供了强大的日期和时间处理功能,通过DateTimeFormatter可以轻松地在日期时间对象和字符串之间进行转换,下面... 目录一、字符串转时间(一)使用预定义格式(二)自定义格式二、时间转字符串(一)使用预定义格式(二)自

Redis Pipeline(管道) 详解

《RedisPipeline(管道)详解》Pipeline管道是Redis提供的一种批量执行命令的机制,通过将多个命令一次性发送到服务器并统一接收响应,减少网络往返次数(RTT),显著提升执行效率... 目录Redis Pipeline 详解1. Pipeline 的核心概念2. 工作原理与性能提升3. 核

Python正则表达式语法及re模块中的常用函数详解

《Python正则表达式语法及re模块中的常用函数详解》这篇文章主要给大家介绍了关于Python正则表达式语法及re模块中常用函数的相关资料,正则表达式是一种强大的字符串处理工具,可以用于匹配、切分、... 目录概念、作用和步骤语法re模块中的常用函数总结 概念、作用和步骤概念: 本身也是一个字符串,其中

Nginx location匹配模式与规则详解

《Nginxlocation匹配模式与规则详解》:本文主要介绍Nginxlocation匹配模式与规则,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、环境二、匹配模式1. 精准模式2. 前缀模式(不继续匹配正则)3. 前缀模式(继续匹配正则)4. 正则模式(大

Android实现在线预览office文档的示例详解

《Android实现在线预览office文档的示例详解》在移动端展示在线Office文档(如Word、Excel、PPT)是一项常见需求,这篇文章为大家重点介绍了两种方案的实现方法,希望对大家有一定的... 目录一、项目概述二、相关技术知识三、实现思路3.1 方案一:WebView + Office Onl

Java实现优雅日期处理的方案详解

《Java实现优雅日期处理的方案详解》在我们的日常工作中,需要经常处理各种格式,各种类似的的日期或者时间,下面我们就来看看如何使用java处理这样的日期问题吧,感兴趣的小伙伴可以跟随小编一起学习一下... 目录前言一、日期的坑1.1 日期格式化陷阱1.2 时区转换二、优雅方案的进阶之路2.1 线程安全重构2