From 2ada53f10750a611755d730764629d3368d35126 Mon Sep 17 00:00:00 2001 From: Ravi Gummadi Date: Wed, 18 Apr 2012 11:59:38 +0000 Subject: [PATCH] MAPREDUCE-4149. [Rumen] Rumen fails to parse certain counter strings. (ravigummadi) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1327461 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../org/apache/hadoop/tools/rumen/HistoryEventEmitter.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 91ffd6c1c2..1f74eb5400 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -52,6 +52,9 @@ Trunk (unreleased changes) BUG FIXES + MAPREDUCE-4149. [Rumen] Rumen fails to parse certain counter + strings. (ravigummadi) + MAPREDUCE-4083. [Gridmix] NPE in cpu emulation. (amarrk) MAPREDUCE-4087. [Gridmix] GenerateDistCacheData job of Gridmix can diff --git a/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/HistoryEventEmitter.java b/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/HistoryEventEmitter.java index a8a7fcbed0..2103709f54 100644 --- a/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/HistoryEventEmitter.java +++ b/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/HistoryEventEmitter.java @@ -80,6 +80,8 @@ protected static Counters parseCounters(String counters) } counters = counters.replace("\\.", "\\\\."); + counters = counters.replace("\\\\{", "\\{"); + counters = counters.replace("\\\\}", "\\}"); counters = counters.replace("\\\\(", "\\("); counters = counters.replace("\\\\)", "\\)"); counters = counters.replace("\\\\[", "\\[");