Jonathan Shook created CASSANDRA-15989: ------------------------------------------
Summary: Provide easy copypasta config formatting for nodetool get commands Key: CASSANDRA-15989 URL: https://issues.apache.org/jira/browse/CASSANDRA-15989 Project: Cassandra Issue Type: Improvement Reporter: Jonathan Shook Allow all nodetool commands which print out the state of the node or cluster to do so in a way that makes it easy to re-use or paste on other nodes or config files. For example, the command getcompactionthroughput formats its output like this: {noformat} [jshook@cass4 bin]$ ./nodetool getcompactionthroughput Current compaction throughput: 64 MB/s {noformat} But with an --as-yaml option, it could do this instead: {noformat} [jshook@cass4 bin]$ ./nodetool getcompactionthroughput --as-yaml compaction_throughput_mb_per_sec: 64{noformat} and with an --as-cli option, it could do this: {noformat} [jshook@cass4 bin]$ ./nodetool getcompactionthroughput --as-cli ./nodetool setcompactionthroughput 64{noformat} Any other nodetool standard options should simply be carried along to the --as-cli form, with the exception of -pw. Any -pw options should be elided with a warning in comments, but -pwf options should be allowed. This would allow users using -pw to append a password at their discretion, but would allow -pwf to work as usual. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org