hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bibin A Chundatt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-6440) Duplicate Key in Json Output for Job details
Date Tue, 11 Aug 2015 02:11:46 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-6440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14681112#comment-14681112

Bibin A Chundatt commented on MAPREDUCE-6440:

{{JAXBContextResolver}} context is set as below

    this.context =
        new JSONJAXBContext(JSONConfiguration.natural()
        .rootUnwrapping(false).build(), cTypes);

xml out put for the same

<taskAttempt xsi:type="reduceTaskAttemptInfo">

While converting to JSON *xsi:type="reduceTaskAttemptInfo"* type gets added to taskattempt.
fix could be 

    this.context =
        new JSONJAXBContext(JSONConfiguration.mapped()
        .rootUnwrapping(false).build(), cTypes);
but the json format will differ. 

 or {{ReduceTaskAttemptInfo}} shouldnt be an extended class
[~devaraj.k] any thoughts?

> Duplicate Key in Json Output for Job details
> --------------------------------------------
>                 Key: MAPREDUCE-6440
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6440
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: jobhistoryserver
>            Reporter: Anushri
>            Assignee: Bibin A Chundatt
>            Priority: Minor
> Duplicate key in Json Output for Job details for the url : 
> http://<jhs_ip>:<jhs_port>/ws/v1/history/mapreduce/jobs/job_id/tasks/task_id/attempts
> If the task type is "REDUCE" the json output for this url contains duplicate key for

This message was sent by Atlassian JIRA

View raw message