Explorar o código

HUE-592. Update hue-plugins to work with new counter methods

bc Wong %!s(int64=14) %!d(string=hai) anos
pai
achega
9b38219d98

+ 6 - 2
desktop/libs/hadoop/java/src/main/java/org/apache/hadoop/mapred/ThriftJobTrackerPlugin.java

@@ -1037,10 +1037,14 @@ public class ThriftJobTrackerPlugin extends JobTrackerPlugin implements Configur
             }
 
             ThriftJobCounterRollups ret = new ThriftJobCounterRollups();
+            Counters mapCounters = new Counters();
+            jip.getMapCounters(mapCounters);
+            Counters reduceCounters = new Counters();
+            jip.getReduceCounters(reduceCounters);
             ret.mapCounters = new ThriftGroupList(
-                JTThriftUtils.toThrift(jip.getMapCounters()));
+                JTThriftUtils.toThrift(mapCounters));
             ret.reduceCounters = new ThriftGroupList(
-                JTThriftUtils.toThrift(jip.getReduceCounters()));
+                JTThriftUtils.toThrift(reduceCounters));
             ret.jobCounters = new ThriftGroupList(
                 JTThriftUtils.toThrift(jip.getJobCounters()));