[
https://issues.apache.org/jira/browse/YARN-8686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16586976#comment-16586976
]
Akhil PB commented on YARN-8686:
--------------------------------
Yes I have passed \{{Content-Type: application/json}} and {{Accept:
application/json}}. The response is a plain string from the API for success as
well as error scenarios. Please find the code snippet of the
{{/scheduler-conf}} API.
[~cheersyang] [~sunilg] Thoughts.
{code:java}
return Response.status(Status.OK).entity("Configuration change " +
"successfully applied.").build();
{code}
> Queue Management API - not returning JSON or XML response data when passing
> Accept header
> -----------------------------------------------------------------------------------------
>
> Key: YARN-8686
> URL: https://issues.apache.org/jira/browse/YARN-8686
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: yarn
> Reporter: Akhil PB
> Assignee: Akhil PB
> Priority: Critical
>
> API should return JSON or XML response data based on Accept header. Instead,
> API returns plain text for success as well as error scenarios.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]