Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2049

JT and TT should prune invalid local dirs on startup


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.21.0, 0.22.0
    • Fix Version/s: None
    • Component/s: jobtracker, tasktracker
    • Labels:


      MRAsyncDiskService fails when it's given local dirs it can't create or write. Per MAPREDUCE-1213 this conflicts with the previous behavior. The TTs will no longer start on hosts where the config has localdirs that can not be created (ie if some hosts don't have the same local mounts).

      The TT and JT should prune out invalid local dirs (ones that fail checkLocalDirs ie that it can not create) before giving them to MRAsyncDiskService and using them otherwise.

      Also mapred-default.xml states that mapred.local.dir that do not exist are ignored, this should be updated as directories that don't exist are created (if possible), they're only ignored if they can not be created.

        Issue Links


          Eli Collins created issue -
          Eli Collins made changes -
          Field Original Value New Value
          Link This issue is related to MAPREDUCE-1213 [ MAPREDUCE-1213 ]
          Scott Chen made changes -
          Assignee Zheng Shao [ zshao ]
          Zheng Shao made changes -
          Link This issue duplicates MAPREDUCE-1382 [ MAPREDUCE-1382 ]
          Nigel Daley made changes -
          Fix Version/s 0.22.0 [ 12314184 ]
          Fix Version/s 0.21.1 [ 12315272 ]
          Vinod Kumar Vavilapalli made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]


            • Assignee:
              Zheng Shao
              Eli Collins
            • Votes:
              0 Vote for this issue
              8 Start watching this issue


              • Created: