Will Berkeley has uploaded this change for review. ( http://gerrit.cloudera.org:8080/10288
Change subject: [tools] ksck improvements [7/n] Add JSON output option to ksck ...................................................................... [tools] ksck improvements [7/n] Add JSON output option to ksck This adds support for JSON output to ksck, using a new flag --ksck_format that supports three options: 'pretty', 'json', and 'compact_json'. 'pretty' formatting is the default: it's the original formatting and it is not changed by this patch. The 'json' option pretty-prints a json representation of all the information gathered by ksck. 'compact_json' ugly-prints the same, and is suitable for parsing by other programs, like jq. Here's a couple of samples of the output: https://gist.github.com/wdberkeley/711e83c5e6c1b53ce7536b0da253477c https://gist.github.com/wdberkeley/b0501982e9e404bf0ae50026854988c8 Change-Id: Ib5da0752f8e41c022611253c300450368f6ae969 --- M src/kudu/tools/ksck-test.cc M src/kudu/tools/ksck.cc M src/kudu/tools/ksck_results.cc M src/kudu/tools/ksck_results.h M src/kudu/tools/tool_action_cluster.cc 5 files changed, 665 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/88/10288/1 -- To view, visit http://gerrit.cloudera.org:8080/10288 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ib5da0752f8e41c022611253c300450368f6ae969 Gerrit-Change-Number: 10288 Gerrit-PatchSet: 1 Gerrit-Owner: Will Berkeley <[email protected]>
