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

Job Counters are not retrieved properly from web UI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.1, 1.3.0
    • None
    • mrv1
    • None

    Description

      After MAPREDUCE-4962, most job counters are coming back as 0 because the web UI retrieves them using the name instead of displayName, which is what is expected:

          /**
           * Returns the value of the specified counter, or 0 if the counter does
           * not exist.
           */
          public synchronized long getCounter(String counterName) {
            for(Counter counter: subcounters.values()) {
              if (counter != null && counter.getDisplayName().equals(counterName)) {
                return counter.getValue();
              }
            }
            return 0L;
          }

      Attachments

        1. MAPREDUCE-5682.1.patch
          1.0 kB
          Mark Wagner

        Activity

          People

            mwagner Mark Wagner
            mwagner Mark Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: