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

相关文章

Java Lambda表达式的使用详解

《JavaLambda表达式的使用详解》:本文主要介绍JavaLambda表达式的使用方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、前言二、Lambda表达式概述1. 什么是Lambda表达式?三、Lambda表达式的语法规则1. 无参数的Lambda表

详解如何使用Python构建从数据到文档的自动化工作流

《详解如何使用Python构建从数据到文档的自动化工作流》这篇文章将通过真实工作场景拆解,为大家展示如何用Python构建自动化工作流,让工具代替人力完成这些数字苦力活,感兴趣的小伙伴可以跟随小编一起... 目录一、Excel处理:从数据搬运工到智能分析师二、PDF处理:文档工厂的智能生产线三、邮件自动化:

Spring @RequestMapping 注解及使用技巧详解

《Spring@RequestMapping注解及使用技巧详解》@RequestMapping是SpringMVC中定义请求映射规则的核心注解,用于将HTTP请求映射到Controller处理方法... 目录一、核心作用二、关键参数说明三、快捷组合注解四、动态路径参数(@PathVariable)五、匹配请

git stash命令基本用法详解

《gitstash命令基本用法详解》gitstash是Git中一个非常有用的命令,它可以临时保存当前工作区的修改,让你可以切换到其他分支或者处理其他任务,而不需要提交这些还未完成的修改,这篇文章主要... 目录一、基本用法1. 保存当前修改(包括暂存区和工作区的内容)2. 查看保存了哪些 stash3. 恢

java String.join()方法实例详解

《javaString.join()方法实例详解》String.join()是Java提供的一个实用方法,用于将多个字符串按照指定的分隔符连接成一个字符串,这一方法是Java8中引入的,极大地简化了... 目录bVARxMJava String.join() 方法详解1. 方法定义2. 基本用法2.1 拼接

Java中的record使用详解

《Java中的record使用详解》record是Java14引入的一种新语法(在Java16中成为正式功能),用于定义不可变的数据类,这篇文章给大家介绍Java中的record相关知识,感兴趣的朋友... 目录1. 什么是 record?2. 基本语法3. record 的核心特性4. 使用场景5. 自定

MyBatis编写嵌套子查询的动态SQL实践详解

《MyBatis编写嵌套子查询的动态SQL实践详解》在Java生态中,MyBatis作为一款优秀的ORM框架,广泛应用于数据库操作,本文将深入探讨如何在MyBatis中编写嵌套子查询的动态SQL,并结... 目录一、Myhttp://www.chinasem.cnBATis动态SQL的核心优势1. 灵活性与可

Python struct.unpack() 用法及常见错误详解

《Pythonstruct.unpack()用法及常见错误详解》struct.unpack()是Python中用于将二进制数据(字节序列)解析为Python数据类型的函数,通常与struct.pa... 目录一、函数语法二、格式字符串详解三、使用示例示例 1:解析整数和浮点数示例 2:解析字符串示例 3:解

C/C++ chrono简单使用场景示例详解

《C/C++chrono简单使用场景示例详解》:本文主要介绍C/C++chrono简单使用场景示例详解,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友... 目录chrono使用场景举例1 输出格式化字符串chrono使用场景China编程举例1 输出格式化字符串示

MySQL 表的内外连接案例详解

《MySQL表的内外连接案例详解》本文给大家介绍MySQL表的内外连接,结合实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录表的内外连接(重点)内连接外连接表的内外连接(重点)内连接内连接实际上就是利用where子句对两种表形成的笛卡儿积进行筛选,我