[
https://issues.apache.org/jira/browse/MAPREDUCE-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149178#comment-13149178
]
Thomas Graves commented on MAPREDUCE-2863:
------------------------------------------
Hey Hitesh,
thanks for the feedback. we could easily change the json to match or be closer.
Right now its configured for POJO output format. We have a few options:
http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/json/JSONConfiguration.Notation.html
Any input on which one people prefer? The default is mapped when I turn off
POJO and output is like:
http://virt09-pv1.tgraves.pool.corp.sp2.yahoo.com:8088/ws/v1/cluster/apps
{
"app" : {
"finalStatus" : "UNDEFINED",
"finishedTime" : "0",
"progress" : "0.0",
"name" : "word count",
"startedTime" : "1321112670525",
"amContainerLogs" :
"http://host:9999/node/containerlogs/container_1321112633248_0001_01_000001",
"elapsedTime" : "8681",
"note" : "",
"trackingUI" : "UNASSIGNED",
"state" : "ACCEPTED",
"appId" : "application_1321112633248_0001",
"trackingUrl" : "UNASSIGNED",
"user" : "tgraves",
"queue" : "default",
"clusterId" : "1321112633248"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<apps>
<app>
<appId>application_1321112633248_0001</appId>
<user>tgraves</user>
<name>word count</name>
<queue>default</queue>
<state>ACCEPTED</state>
<progress>0.0</progress>
<trackingUI>UNASSIGNED</trackingUI>
<trackingUrl>UNASSIGNED</trackingUrl> <note/>
<finalStatus>UNDEFINED</finalStatus>
<startedTime>1321112670525</startedTime>
<finishedTime>0</finishedTime> <elapsedTime>8717</elapsedTime>
<amContainerLogs>http://host:9999/node/containerlogs/container_1321112633248_0001_01_000001</amContainerLogs>
<clusterId>1321112633248</clusterId>
</app>
</apps>
> Support web-services for RM & NM
> --------------------------------
>
> Key: MAPREDUCE-2863
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2863
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: mrv2, nodemanager, resourcemanager
> Reporter: Arun C Murthy
> Assignee: Thomas Graves
> Attachments: MAPREDUCE-2863.patch, nmoutput.txt, rmoutput.txt
>
>
> It will be very useful for RM and NM to support web-services to export
> json/xml.
--
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