You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Weiwei Yang (JIRA)" <ji...@apache.org> on 2017/09/04 04:18:00 UTC
[jira] [Created] (HDFS-12389) Ozone: oz commandline list calls
should return valid JSON format output
Weiwei Yang created HDFS-12389:
----------------------------------
Summary: Ozone: oz commandline list calls should return valid JSON format output
Key: HDFS-12389
URL: https://issues.apache.org/jira/browse/HDFS-12389
Project: Hadoop HDFS
Issue Type: Sub-task
Components: ozone
Affects Versions: HDFS-7240
Reporter: Weiwei Yang
Assignee: Weiwei Yang
At present the outputs of {{listVolume}}, {{listBucket}} and {{listKey}} are hard to parse, for example following call
{code}
./bin/hdfs oz -listVolume http://localhost:9864 -user wwei
{code}
lists all volumes in my cluster and it returns
{noformat}
{
"version" : 0,
"md5hash" : null,
"createdOn" : "Mon, 04 Sep 2017 03:25:22 GMT",
"modifiedOn" : "Mon, 04 Sep 2017 03:25:22 GMT",
"size" : 10240,
"keyName" : "key-0-22381",
"dataFileName" : null
}
{
"version" : 0,
"md5hash" : null,
"createdOn" : "Mon, 04 Sep 2017 03:25:22 GMT",
"modifiedOn" : "Mon, 04 Sep 2017 03:25:22 GMT",
"size" : 10240,
"keyName" : "key-0-22381",
"dataFileName" : null
}
...
{noformat}
this is not a valid JSON format output hence it is hard to parse in clients' script for further interactions. Propose to reformat them to valid JSON data.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org