Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14220

Enable Replica Placement Value Per Rack

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.7.1
    • None
    • datanode
    • None

    Description

      By default, Replica placement per rack will be taken care by  BlockPlacementPolicyDefault.java .

      With 2 if conditions 

      1. numOfRacks <1 
      2. numOfRacks > 1

      and the placement will happen as 1 on localrack, 2 on remote rack.

      If a user needs max of 1 replica per rack then BlockPlacementPolicyDefault.java modification is needed instead we can add a property to specify the placement policy and replica value per rack.

       

       

      Attachments

        1. HDFS-14220-01.patch
          8 kB
          Ayush Saxena
        2. HDFS-14220-02.patch
          9 kB
          Ayush Saxena

        Issue Links

          Activity

            People

              ayushtkn Ayush Saxena
              Amithsha Amithsha
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: