nilotpalnandi opened a new pull request, #4343:
URL: https://github.com/apache/ozone/pull/4343

   ## What changes were proposed in this pull request?
   
   Currently the Pipeline list SubCommand provides a list of pipelines on the 
console, but it does not provide a JSON output option. We should allow for JSON 
output to ensure compatibility and so the output can be consumed 
programmatically.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-6802
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. Ex: unit tests, manual tests)
   This patch was tested using docker-compose. Here is the output -
   
   bash-4.2$ ozone admin pipeline list --json | more
   [ {
     "id" : {
       "id" : "ec954f5b-355d-477c-9905-09718d77da9c"
     },
     "replicationConfig" : {
       "replicationFactor" : "ONE",
       "requiredNodes" : 1,
       "replicationType" : "RATIS"
     },
     "nodesInOrder" : [ {
       "level" : 0,
       "cost" : 0,
       "uuid" : "955f219c-e422-415b-9f83-0431588552b4",
       "uuidString" : "955f219c-e422-415b-9f83-0431588552b4",
       "ipAddress" : "172.18.0.11",
       "hostName" : "ozone_datanode_6.ozone_default",
       "ports" : [ {
         "name" : "REPLICATION",
         "value" : 9886
       }, {
         "name" : "RATIS",
         "value" : 9858
       }, {
         "name" : "RATIS_ADMIN",
         "value" : 9857
       }, {
         "name" : "RATIS_SERVER",
         "value" : 9856
       }, {
         "name" : "RATIS_DATASTREAM",
         "value" : 9855
       }, {
         "name" : "STANDALONE",
         "value" : 9859
       } ],
       "setupTime" : 0,
       "persistedOpState" : "IN_SERVICE",
       "persistedOpStateExpiryEpochSec" : 0,
       "initialVersion" : 0,
       "currentVersion" : 1,
       "signature" : 131170440,
       "decomissioned" : false,
       "networkLocation" : "/default-rack",
       "networkFullPath" : "/default-rack/955f219c-e422-415b-9f83-0431588552b4",
       "numOfLeaves" : 1,
       "networkName" : "955f219c-e422-415b-9f83-0431588552b4"
     } ],
     "leaderId" : "955f219c-e422-415b-9f83-0431588552b4",
     "creationTimestamp" : "2023-03-03T11:39:57.478Z",
     "suggestedLeaderId" : "955f219c-e422-415b-9f83-0431588552b4",
     "empty" : false,
     "open" : true,
     "type" : "RATIS",
   --More--
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to