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/14 09:42:49 UTC

[GitHub] [hadoop-ozone] sodonnel opened a new pull request #17: HDDS-2196 Add CLI Commands and Protobuf messages to trigger decom states

sodonnel opened a new pull request #17: HDDS-2196 Add CLI Commands and Protobuf messages to trigger decom states
URL: https://github.com/apache/hadoop-ozone/pull/17
 
 
   This change provides 3 new CLI commands:
   
   ```
   scmcli dnadmin decommission hostname1 hostname2 hostname3
   scmcli dnadmin maintenance hostname1 hostname2 hostname3 < --end time from now to end maintenance in hours>
   scmcli dnadmin recommission hostname1 hostname2 hostname3
   ```
   
   To allow for cases where many DNs are on the same host, the hostname can also have a port appended, eg:
   
   ```
   scmcli dnadmin decommission hostname1:5678 hostname1:6789 hostname1:7890
   ```
   
   These commands make use of 3 new protobuf messages, defined in StorageContainerLocationProtocol:
   
   ```
   DecommissionNodesRequestProto + DecommissionNodesResponseProto
   RecommissionNodesRequestProto + RecommissionNodesResponseProto
   StartMaintenanceNodesRequestProto + StartMaintenanceNodesResponseProto
   ```
   
   All 3 accept a list of strings (for hostnames) and the maintenance message also allows an int to specify the end time in hours.
   
   These 3 commands make a call to a new class NodeDecommissionManager which takes the list of hosts and validates them. If any host is invalid or not part of the cluster, the entire command is failed and the CLI will show an error. Assuming the validation passes OK, the list of nodes will be switch into DECOMMISSIONING, ENTERING_MAINTENANCE or back into IN_SERVICE.
   
   At this point in time, there is no decommission logic present, the nodes will simply remain in the interm state forever. The actual decommissioning logic will be added in a further Jira.

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