zhtttylz opened a new pull request, #6504: URL: https://github.com/apache/hadoop/pull/6504
JIRA: HDFS-17146. Use the dfsadmin -reconfig command to initiate reconfiguration on all decommissioning datanodes. If the DFSAdmin command could have the ability to perform bulk operations across all decommissioned datanodes, that would be highly advantageous. ### How was this patch tested? Dev cluster and UT. When the cluster node status is as follows: ``` Hostname: hadoop-node1 Decommission Status : Decommission in progress Hostname: hadoop-node2 Decommission Status : Decommission in progress Hostname: hadoop-node3 Decommission Status : Normal [hadoop@hadoop-ops bin]$ hdfs dfsadmin -reconfig datanode decomnodes start Started reconfiguration task on node [hadoop-node1:9867]. Started reconfiguration task on node [hadoop-node2:9867]. Starting of reconfiguration task successful on 2 nodes, failed on 0 nodes. [hadoop@hadoop-ops bin]$ hdfs dfsadmin -reconfig datanode decomnodes status Reconfiguring status for node [hadoop-node1:9867]: started at Fri Jan 26 20:19:54 CST 2024 and finished at Fri Jan 26 20:19:54 CST 2024. SUCCESS: Changed property dfs.datanode.data.transfer.bandwidthPerSec From: "0" To: "10240" Reconfiguring status for node [hadoop-node2:9867]: started at Fri Jan 26 20:19:56 CST 2024 and finished at Fri Jan 26 20:19:56 CST 2024. SUCCESS: Changed property dfs.datanode.data.transfer.bandwidthPerSec From: "0" To: "10240" Retrieval of reconfiguration status successful on 2 nodes, failed on 0 nodes. ``` -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org