[
https://issues.apache.org/jira/browse/CASSANDRA-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15241751#comment-15241751
]
Yuki Morishita commented on CASSANDRA-5977:
-------------------------------------------
Thanks, and I like the change to snake case.
I uploaded your patch and running tests. If tests are good, I will commit.
||branch||testall||dtest||
|[5977|https://github.com/yukim/cassandra/tree/5977]|[testall|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-5977-testall/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-5977-dtest/lastCompletedBuild/testReport/]|
I changed the code a bit for styling.
If we can upgrade jackson to 2.0 and have annotations, it will be much cleaner,
but for now, the patch is sufficient.
> Structure for cfstats output (JSON, YAML, or XML)
> -------------------------------------------------
>
> Key: CASSANDRA-5977
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5977
> Project: Cassandra
> Issue Type: Improvement
> Components: Tools
> Reporter: Alyssa Kwan
> Assignee: Shogo Hoshii
> Priority: Minor
> Labels: Tools
> Fix For: 3.x
>
> Attachments: CASSANDRA-5977-trunk.patch, CASSANDRA-5977-trunk.patch,
> sample_result.zip, sample_result.zip, tablestats_sample_result.json,
> tablestats_sample_result.txt, tablestats_sample_result.yaml,
> trunk-tablestats.patch, trunk-tablestats.patch
>
>
> nodetool cfstats should take a --format arg that structures the output in
> JSON, YAML, or XML. This would be useful for piping into another script that
> can easily parse this and act on it. It would also help those of us who use
> things like MCollective gather aggregate stats across clusters/nodes.
> Thoughts? I can submit a patch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)