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

Force the task tracker to exit when the task is complete, prevents nodes from dying due to resource starvation from impropertly written map/reduce tasks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      We have map/reduce jobs that sometimes run additional threads that are not at daemon priority, and these threads prevent the Task from properly exiting. When enough of these accumulate, the node falls over.

      The included patch forces the Tasks to exit when completed.

      Index: src/java/org/apache/hadoop/mapred/TaskTracker.java
      ===================================================================
      — src/java/org/apache/hadoop/mapred/TaskTracker.java (revision 608611)
      +++ src/java/org/apache/hadoop/mapred/TaskTracker.java (working copy)
      @@ -1801,6 +1801,8 @@
      // This assumes that on return from Task.run()
      // there is no more logging done.
      LogManager.shutdown();
      +
      + System.exit(0);
      }
      }
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            jason_attributor Jason
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified