maobaolong opened a new pull request #1423:
URL: https://github.com/apache/hadoop-ozone/pull/1423


   ## What changes were proposed in this pull request?
   
   Container deleted wrong replica cause mis-replicated.
   
   ## What is the link to the Apache JIRA
   
   HDDS-4244
   
   ## How was this patch tested?
   
   
   - Related config file
     - ozone-site.xml
   ```xml
     <property>
       <name>ozone.scm.container.placement.impl</name>
       
<value>org.apache.hadoop.hdds.scm.container.placement.algorithms.SCMContainerPlacementRackAware</value>
     </property>
     <property>
       <name>net.topology.node.switch.mapping.impl</name>
       <value>org.apache.hadoop.net.TableMapping</value>
     </property>
     <property>
       <name>net.topology.table.file.name</name>
       <value>/data/ozoneadmin/ozoneenv/ozone/etc/hadoop/network-config</value>
     </property>
   ```
   
     - network-config
   ```
   192.168.1.100 /racks1
   192.168.1.101 /racks1
   192.168.1.102 /racks1
   192.168.1.103 /racks2
   192.168.1.104 /racks2
   192.168.1.106 /racks2
   ```
   
   First you should make the 3 replicas of the tested container on the same 
racks, like racks1.
   secondly, change the config file update the request config.
   
   2 ReplicationManager interval, you can use the following command to verify 
the container replicas are in the 2 racks.
   ```bash
   ozone admin container info #xxx
   ```
   
   
   
   


----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to