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

   ## What changes were proposed in this pull request?
   Updated `ozone admin datanode list --json `to include only key fields that 
are relevant for a listing command and removed duplicate fields. The command 
now returns only minimal and essential information per datanode. Detailed 
information for each node can be obtained via `ozone admin datanode info` 
[HDDS-13097](https://issues.apache.org/jira/browse/HDDS-13097). 
   This makes the list output cleaner and more readable, especially in large 
clusters.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-13101
   
   ## How was this patch tested?
   
   Sample output for single node:
   ```
   [ {
     "id" : "f0d2ef68-e2cd-4487-aebc-bef991004eb0",
     "hostname" : "ozone-datanode-4.ozone_default",
     "ipAddress" : "X.X.X.X",
     "healthState" : "HEALTHY",
     "opState" : "IN_SERVICE",
     "persistedOpStateExpiryEpochSec" : 0,
     "decommissioned" : false,
     "maintenance" : false,
     "topology" : {
       "networkLocation" : "/default-rack",
       "networkName" : "f0d2ef68-e2cd-4487-aebc-bef991004eb0",
       "networkFullPath" : "/default-rack/f0d2ef68-e2cd-4487-aebc-bef991004eb0",
       "numOfLeaves" : 1,
       "level" : 3,
       "cost" : 0
     }
   } ]
   ```
   https://github.com/sreejasahithi/ozone/actions/runs/15328473637


-- 
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