[ 
https://issues.apache.org/jira/browse/HADOOP-3970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626852#action_12626852
 ] 

Owen O'Malley commented on HADOOP-3970:
---------------------------------------

After an out-of-band discussion with Amar, I agree that we need both the 
internal and display names to be saved. If we are breaking the format, we 
should probably pull out the group names and put in both. Maybe we should use a 
lisp like format:

{code}
{g1 {ci1 cd1 v1} {ci2 cd2 v2} {ci3 cd3 v3}} {g2 {ci4 cd4 v4}}
{code}

Thoughts?

> Counters written to the job history cannot be recovered back
> ------------------------------------------------------------
>
>                 Key: HADOOP-3970
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3970
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: mapred
>            Reporter: Amar Kamat
>         Attachments: HADOOP-3970-v1.patch
>
>
> Counters that are written to the JobHistory are stringified using 
> {{Counters.makeCompactString()}}. The format in which this api converts the 
> counter into a string is _groupname.countername:value_. The problem is that 
> _groupname_ and _countername_ can contain a '.' and hence recovering the 
> counter becomes difficult. Since JobHistory can be used for various purposes, 
> reconstructing the counter object back might be useful. One such usecase is 
> HADOOP-3245. There should be some way to recover the counter object back from 
> its string representation and also to keep the string version readable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to