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

MR AM container log can be truncated or empty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: applicationmaster
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      It occurs when the property "mapreduce.task.userlog.limit.kb" is set non-zero in mapped-site.xml.
      AM container syslog remains empty if any exception occurs.

      Bug details:
      In MRAppMaster.java, the following code snippets show the bug.

          } catch (Throwable t) {
             LOG.fatal("Error starting MRAppMaster", t);
            System.exit(1);
          }finally {
             LogManager.shutdown();
          }
      

      In the catch block, we are exiting the JVM. So finally block (therefore LogManager.shutdown()) is never executed.

      Possible fix:
      Make sure LogManager.shutdown() is executed in all cases.

        Attachments

        1. MAPREDUCE-5723.1.patch
          1 kB
          Mohammad Islam
        2. MAPREDUCE-5723.2.patch
          0.9 kB
          Mohammad Islam
        3. MAPREDUCE-5723.3.patch
          1 kB
          Mohammad Islam
        4. MAPREDUCE-5723.4.patch
          1 kB
          Mohammad Islam

          Issue Links

            Activity

              People

              • Assignee:
                kamrul Mohammad Islam
                Reporter:
                kamrul Mohammad Islam
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: