MAPREDUCE-6255. Fix JobCounter's format to use grouping separator. Contributed by Ryu Kobayashi.

(cherry picked from commit ba3c80a5ca)
This commit is contained in:
Tsuyoshi Ozawa 2015-02-13 16:09:54 +09:00
parent 3c4b5606dc
commit 7386323735
2 changed files with 6 additions and 3 deletions

View File

@ -52,6 +52,9 @@ Release 2.7.0 - UNRELEASED
MAPREDUCE-4431. mapred command should print the reason on killing already MAPREDUCE-4431. mapred command should print the reason on killing already
completed jobs. (devaraj via ozawa) completed jobs. (devaraj via ozawa)
MAPREDUCE-6255. Fix JobCounter's format to use grouping separator.
(Ryu Kobayashi via ozawa)
OPTIMIZATIONS OPTIMIZATIONS
MAPREDUCE-6169. MergeQueue should release reference to the current item MAPREDUCE-6169. MergeQueue should release reference to the current item

View File

@ -139,10 +139,10 @@ public class CountersBlock extends HtmlBlock {
Counter mc = mg == null ? null : mg.findCounter(counter.getName()); Counter mc = mg == null ? null : mg.findCounter(counter.getName());
Counter rc = rg == null ? null : rg.findCounter(counter.getName()); Counter rc = rg == null ? null : rg.findCounter(counter.getName());
groupRow. groupRow.
td(mc == null ? "0" : String.valueOf(mc.getValue())). td(mc == null ? "0" : String.format("%,d", mc.getValue())).
td(rc == null ? "0" : String.valueOf(rc.getValue())); td(rc == null ? "0" : String.format("%,d", rc.getValue()));
} }
groupRow.td(String.valueOf(counter.getValue()))._(); groupRow.td(String.format("%,d", counter.getValue()))._();
} }
group._()._()._()._(); group._()._()._()._();
} }