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 GitBox <gi...@apache.org> on 2019/10/16 10:16:27 UTC

[GitHub] [hadoop-ozone] sodonnel opened a new pull request #37: HDDS-2197 Extend SCMCLI Topology command to print node Operational States

sodonnel opened a new pull request #37: HDDS-2197 Extend SCMCLI Topology command to print node Operational States
URL: https://github.com/apache/hadoop-ozone/pull/37
 
 
   The scmcli topology command only consider the node health (healthy, stale or dead). With decommission and maintenance stages, we need to also consider the operational states and display them with this command.
   
   The current topology command prints details in the format:
   ```
   State = HEALTHY
    IpAddress(hostName)    networkLocation
    IpAddress(hostName) networkLocation
    IpAddress(hostName) networkLocation
   
   State = STALE
     ...
   
   State = DEAD
     ... 
   ```
   Alternatively, it prints the details ordered by network location
   ```
   State = HEALTHY
   Location: somelocation
    ipAddress(hostName)
    ipAddress(hostName)
    ipAddress(hostName)
   Location: otherlocation
    ipAddress(hostName)
    ipAddress(hostName)
    ipAddress(hostName) 
   
   State = STALE
   Location: someLocation
    ...
    ...
   ```
   
   In this PR, I propose we simple add the operational state into the existing output, and keep the ordering and formatting as is:
   
   ```
   State = HEALTHY
    IpAddress(hostName) IN_SERVICE networkLocation
    IpAddress(hostName) IN_SERVICE networkLocation
    IpAddress(hostName) DECOMMISSIONING networkLocation
   
   State = STALE
    ...
   
   State = DEAD
    ...  
   ```
   Or
   ```
   State = HEALTHY
   Location: somelocation
    ipAddress(hostName) IN_SERVICE
    ipAddress(hostName) IN_SERVICE
    ipAddress(hostName) DECOMMISSIONED
   Location: otherlocation
    ipAddress(hostName) IN_SERVICE
    ipAddress(hostName) IN_MAINTENANE
    ipAddress(hostName) IN_SERVIE
   
   State = STALE
   Location: someLocation
    ...
    ...
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org