Gargi-jais11 commented on PR #9310:
URL: https://github.com/apache/ozone/pull/9310#issuecomment-3551396309

   **Failure Case Output of CLI without json enabled:**
   ```
   bash-5.1$ ozone admin datanode diskbalancer update -b 50 ozone-datanode-1 
ozone-datanode-5 ozone-datanode-4              
   Error on node [ozone-datanode-5]: Invalid host name: local host is: 
"289e51bc0b85/172.18.0.3"; destination host is: "ozone-datanode-5":19864; 
java.net.UnknownHostException: Invalid host name: local host is: 
"289e51bc0b85/172.18.0.3"; destination host is: "ozone-datanode-5":19864; 
java.net.UnknownHostException; For more details see:  
http://wiki.apache.org/hadoop/UnknownHost; For more details see:  
http://wiki.apache.org/hadoop/UnknownHost
   
   Updated DiskBalancer configuration on nodes: [ozone-datanode-1, 
ozone-datanode-4]
   Failed to update DiskBalancer configuration on nodes: [ozone-datanode-5]
   ```
   **Failure Case Output of CLI with json enabled:**
   ```
   bash-5.1$ ozone admin datanode diskbalancer update -b 50 ozone-datanode-1 
ozone-datanode-5 ozone-datanode-4 --json
   [ {
     "datanode" : "ozone-datanode-1",
     "action" : "update",
     "status" : "success",
     "configuration" : {
       "bandwidthInMB" : 50
     }
   }, {
     "datanode" : "ozone-datanode-4",
     "action" : "update",
     "status" : "success",
     "configuration" : {
       "bandwidthInMB" : 50
     }
   } ]
   Error on node [ozone-datanode-5]: Invalid host name: local host is: 
"289e51bc0b85/172.18.0.3"; destination host is: "ozone-datanode-5":19864; 
java.net.UnknownHostException: Invalid host name: local host is: 
"289e51bc0b85/172.18.0.3"; destination host is: "ozone-datanode-5":19864; 
java.net.UnknownHostException; For more details see:  
http://wiki.apache.org/hadoop/UnknownHost; For more details see:  
http://wiki.apache.org/hadoop/UnknownHost
   
   ```
   
   Thanks, @ChenSammi for pointing this out. Seems to be overlooked by me. Here 
for json case expected failure for DN-5 is not in json format like this:
   ```
   {
   "datanode" : "ozone-datanode-1",
   "action" : "start",
   "status" : "failure",
   "errorMsg": "******* "
   "configuration" : {
   "stopAfterDiskEven" : false
   }
   ```
   I will do work around on this to be the required format.
   


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