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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1, 1.3.0
    • Fix Version/s: None
    • Component/s: mrv1
    • Labels:
      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

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

              Dates

              • Created:
                Updated: