Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2185

Infinite loop at creating splits using CombineFileInputFormat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.23.0
    • job submission
    • None
    • Reviewed

    Description

      This is caused by a missing block in HDFS. So the block's locations are empty. The following code adds the block to blockToNodes map but not to rackToBlocks map. Later on when generating splits, only blocks in rackToBlocks are removed from blockToNodes map. So blockToNodes map can never become empty therefore causing infinite loop

                // add this block to the block --> node locations map
                blockToNodes.put(oneblock, oneblock.hosts);
      
                // add this block to the rack --> block map
                for (int j = 0; j < oneblock.racks.length; j++) {
                   ..
                }
      

      Attachments

        1. MAPREDUCE-2185.patch
          7 kB
          Ramkumar Vadali

        Activity

          People

            rvadali Ramkumar Vadali
            hairong Hairong Kuang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: