hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jiraposter@reviews.apache.org (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-3553) Add support for data returned when exceptions thrown from web service apis to be in either xml or in JSON
Date Wed, 21 Dec 2011 03:59:31 GMT

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

jiraposter@reviews.apache.org commented on MAPREDUCE-3553:
----------------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/3286/
-----------------------------------------------------------

Review request for Ravi Prakash, Jonathan Eagles and Mark Holderbaugh.


Summary
-------

Changes to have exceptions return either JSON or XML based on what the user originally requested.


This addresses bug MAPREDUCE-3553.
    https://issues.apache.org/jira/browse/MAPREDUCE-3553


Diffs
-----

  http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/JAXBContextResolver.java
1221514 
  http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/JAXBContextResolver.java
1221514 
  http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/GenericExceptionHandler.java
1221514 
  http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/RemoteExceptionData.java
PRE-CREATION 
  http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/JAXBContextResolver.java
1221514 
  http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/JAXBContextResolver.java
1221514 
  http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRemoteException.java
PRE-CREATION 

Diff: https://reviews.apache.org/r/3286/diff


Testing
-------

more tests will be added with jiras 3547 and 3548.  Unit test here covers RM and manually
tested NM, AM, and history server.


Thanks,

Tom


                
> Add support for data returned when exceptions thrown from web service apis to be in either
xml or in JSON
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-3553
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3553
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Minor
>         Attachments: MAPREDUCE-3553.patch
>
>
> When the web services apis for rm, nm, app master, and job history server throw an exception
- like bad request, not found, they always return the data in JSON format.  It would be nice
to return based on what they requested - xml or JSON.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message