cassandra nodetool command

CASSANDRA NODETOOL command translation

Usage: nodetool [(-u <username> | --username <username>)]
[(-pw <password> | –password <password>)] [(-h | –host )] [(-pp | --print-port)] [(-p | --port<port>)] [(-pwf | --password-file )] [] The
most commonly used nodetool commands are:

assassinate - Forcibly remove dead nodes without re-copying any data. Use as a last resort if you are unable to delete a node

bootstrap - Monitor/manage the bootstrap process of nodes

cleanup - triggers an immediate cleanup of keys that no longer belong to the node. By default, all keyspaces are cleared

clearsnapshot - delete a snapshot with the given name from the given keyspace

clientstats - prints information about connected clients

compact - force (major) compaction for one or more tables or user-defined compaction for a given SSTable

compactionhistory - print the compaction history

compactionstats - Print statistics about compaction

decommission - decommission the node I'm connected to

describecluster - prints the cluster's name, informer, partitioner, and schema version

describing - Display token range information for a given keyspace

disableauditlog - disable audit logging

disableautocompaction - disable automatic compaction for the given keyspace and table

disablebackup - disable incremental backup

disablebinary - disable native transport (binary protocol)

disablefullquerylog - disable full query logging

disablegossip - Disable gossip (effectively marks the node as down)

disablehandoff - Disable handoff for storage hints

disablehintsfordc - Disable hints for data centers

disableoldprotocolversions - Disable old protocol versions

drain - Drain the node (stop accepting writes and flush all tables)

enableauditlog - enable audit logging

enableautocompaction - enable autocompaction for the given keyspace and table

enablebackup - enable incremental backup

enablebinary - re-enable native transport (binary protocol)

enablefullquerylog - enable full query logging, the default value of the option is configured in cassandra.yaml

enablegossip - re-enable gossip

enablehandoff - re-enable future hints stored on the current node

enablehintsfordc - Enable hints for pre-disabled data centers

enableoldprotocolversions - enable old protocol versions

failuredetector - Display failure detector information for a cluster

flush - flush one or more tables

garbagecollect - removes deleted data from one or more tables

gcstats - Print GC statistics

getbatchlogreplaythrottle - print batch log replay throttle in KB/s. This decreases proportionally to the number of nodes in the cluster.

getcompactionthreshold - prints the minimum and maximum compaction threshold for the given table

getcompactionthroughput - prints the MB/s throughput limit for compression in the system

getconcurrency - get the maximum concurrency of processing stages

getconcurrentcompactors - Get the number of concurrent compactors in the system.

getconcurrentviewbuilders - get the number of concurrent viewbuilders in the system

getendpoints - print the endpoints that own the key

getfullquerylog - print - config if fql is enabled, otherwise config reflected in cassandra.yaml

getinterdcstreamthroughput - Mb/s throughput limit for inter-datacenter streams in the print system

getlogginglevels - Get runtime logging levels

getmaxhintwindow - print the maximum hint window in milliseconds

getseeds - Get the list of currently used seed node IPs, excluding node IPs

getsnapshotthrottle - snapshot_links_per_second throttle for printing/clearing snapshots

getsstables - prints the name of the sstable file that holds the key

getstreamthroughput - Mb/s throughput limit for streaming in the print system

gettimeout - prints the given type's timeout in milliseconds

gettraceprobability - prints the current trace probability value

gossipinfo - Display gossip information for a cluster

help - display help information

import - import new SSTables into the system

info - print node info (uptime, load, etc.)

invalidatecountercache - invalidate the counter cache

invalidatekeycache - invalidate the key cache

invalidaterowcache - invalidate the row cache

join - join the ring

listnapshots - Lists all snapshots with on-disk and real sizes. The true size is the total size of all SSTables not backed up to disk. The disk size is the total size of the snapshots on disk. Total TrueDiskSpaceUsed does not do any SSTable deduplication.

move - move a node on a token ring to a new token

netstats - prints network information on the provided host (node ​​is connected by default)

pausehandoff - Pauses the handoff process

profileload - Low-footprint analysis of activity over time

proxyhistograms - Print statistical histograms of network operations

rangekeysample - display sample keys saved in all keyspaces

rebuild - rebuild data via streams from other nodes (similar to bootstrap)

rebuild_index - a complete rebuild of the native secondary index for a given table

refresh - Loads newly placed SSTables into the system without rebooting

refreshsizeestimates - 刷新 system.size_estimates

reloadlocalschema - reloads the local node schema from the system tables

reloadseeds - reloads the list of seeds from the seed provider

reloadssl - Tells Cassandra to reload the SSL certificate

reloadtriggers - reload trigger class

relocatesstables - Relocates sstables to the correct disk

removenode - Shows the status of the current node removal, forces completion of a pending removal or removes the provided ID

repair - repair one or more tables

repair_admin - list - and fail incremental repair sessions

replaybatchlog - start batch log replay and wait for completion

resetfullquerylog - Stop full query log from cassandra.yaml and JMX and clean up files in configured full query log directory

resetlocalschema - resets the node's local schema and resyncs

resumehandoff - resume handoff process

ring - print information about Token Ring

scrub - Scrub (rebuild sstables) one or more tables

setbatchlogreplaythrottle - Set batch log replay throttling in KB per second, or 0 to disable throttling. This will decrease proportionally to the number of nodes in the cluster.

setcachecapacity - Set global key, row and counter cache capacity in MB

setcachekeystosave - Sets the number of keys to save per cache to speed up warmup after restart. 0 disabled

setcompactionthreshold - set the minimum and maximum compaction thresholds for a given table

setcompactionthroughput - set the MB/s throughput cap for compression in the system, or 0 to disable throttling

setconcurrency - set the maximum concurrency of processing stages

setconcurrentcompactors - Sets the number of concurrent compactors in the system.

setconcurrentviewbuilders - Sets the number of concurrent viewbuilders in the system

sethintedhandoffthrottlekb - Set hintedhandoff throttle in kb per second per delivery thread.

setinterdcstreamthroughput - sets the Mb/s throughput cap for inter-datacenter streams in the system, or 0 to disable throttling

setlogginglevel - Sets the logging level threshold for the given component or class. If called without arguments, will reset to the initial configuration.

setmaxhintwindow - set the specified maximum hint window in milliseconds

setnapshotthrottle - set snapshot_links_per_second cap for snapshot and purge snapshot throttling

setstreamthroughput - set the Mb/s throughput cap for streaming in the system, or 0 to disable throttling

settimeout - set the specified timeout in milliseconds, or 0 to disable the timeout

settraceprobability - Sets the probability of tracing any given request to a value. 0 disables, 1 enables all requests, 0 is default

sjk - Runs the "Swiss Java Knife" command. Run "nodetool sjk --help" for more information.

snapshot - Take a snapshot of the specified keyspace or a snapshot of the specified table

status - print cluster information (status, load, ID, etc.)

statusautocompaction - status - automatic compaction for a given keyspace and table

statusbackup - status of the incremental backup

statusbinary - local transport status (binary protocol)

statusgossip - gossip status

statushandoff - store the status of future hints on the current node

stop - stop compression

stopdaemon - Stop the cassandra daemon

tablehistograms - print statistical histograms for a given table

tablestats - print table statistics

toppartitions - Sample and print the most active partitions

tpstats - print thread pool usage statistics

truncatehints - Truncates all hints on the local node, or truncates hints for specified endpoints.

upgradesstables - rewrites sstables (for requested tables) that are not on the current version (thus upgrading them to said current version)

verify - verify (check data checksums) one or more tables

version - prints the cassandra version

viewbuildstatus - displays the progress of the materialized view build

Guess you like

Origin blog.csdn.net/weixin_44157851/article/details/119025664
Recommended