jianghuazhu commented on pull request #3544:
URL: https://github.com/apache/hadoop/pull/3544#issuecomment-947297132


   Some changes have been made here.
   When executing addBlock(), some nodes will be excluded. These nodes include:
   1. Non-locally activated DN node.
   2. If xferport is greater than the length of datanodes.
   
   Below are some verified examples.
   step 1:
   There are some existing DN nodes, [hostname=hadoop1.jdhadoop.xxx.org, 
ip=xxxx.xxxx.xxxx.xxxx, xferport=50010]
   dn[hostname=hadoop2.jdhadoop.xxx.org, ip=xxxx.xxxx.xxxx.xxxx, xferport=50010]
   dn[hostname=hadoop3.jdhadoop.xxx.org, ip=xxxx.xxxx.xxxx.xxxx, xferport=50010]
   Step 2:
   Excuting an order.
   ./bin/hadoop org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark 
-fs hdfs://xxxx -op blockReport -datanodes 3
   
   Step 3:
   We will print some additional information.
   All surviving dn nodes: [hostname=hadoop1.jdhadoop.xxxx.org, 
ip=xxxx.xxxx.xxxx.xxxx xferport=1]
   dn[hostname=hadoop1.jdhadoop.xxxx.org, ip=xxxx, xferport=2]
   dn[hostname=hadoop1.jdhadoop.xxxx.org, ip=xxxx.xxxx.xxxx.xxxx.xxxx, 
xferport=3]
   dn[hostname=hadoop1.jdhadoop.xxxx.org, ip=xxx.xxx.xxx.xxx, xferport=50010]
   dn[hostname=hadoop2.jdhadoop.xxxx.org, ip=xxxx.xxx.xxx.xxx, xferport=50010]
   dn[hostname=hadoop3.jdhadoop.xxxx.org, ip=xxx.xxx.xxx.xxx.xxx, 
xferport=50010]
   The dn node that needs to be filtered: [hostname=hadoop1.jdhadoop.xxx.org, 
ip=xxx.xxx.xxx.xxx, xferport=50010]
   dn[hostname=hadoop2.jdhadoop.xxxx.org, ip=xxx.xxx.xxx.xxx, xferport=50010]
   dn[hostname=hadoop3.jdhadoop.xxx.org, ip=xxx.xxx.xxx.xxx, xferport=50010]
   Returned dn node: [hostname=hadoop1.jdhadoop.xxx.org, ip=xxxx.xxx.xxx.xxx, 
xferport=1],dn[hostname=hadoop1.jdhadoop.xxxx.org, ip=xxx.xxx.xxx .xxx, 
xferport=3]
   dn[hostname=hadoop1.jdhadoop.xxxx.org, ip=xxxx.xxx.xxx.xxx, xferport=2]
   
   @jojochuang, would you like to take some time to help review again.
   Thank you very much.


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