You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Paulo Motta (Jira)" <ji...@apache.org> on 2021/02/15 21:45:00 UTC

[jira] [Updated] (CASSANDRA-15989) Provide easy copypasta config formatting for nodetool get commands

     [ https://issues.apache.org/jira/browse/CASSANDRA-15989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulo Motta updated CASSANDRA-15989:
------------------------------------
    Labels: gsoc2021 mentor  (was: )

> 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
>            Priority: Normal
>              Labels: gsoc2021, mentor
>
> 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.
> In the absence of either of the options above (--as-yaml or --as-cli) the formatting should not be changed to avoid breaking extant tool integrations.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org