You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Akhil PB (JIRA)" <ji...@apache.org> on 2018/08/21 06:07:00 UTC
[jira] [Comment Edited] (YARN-8686) Queue Management API - not
returning JSON or XML response data when passing Accept header
[ https://issues.apache.org/jira/browse/YARN-8686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16586976#comment-16586976 ]
Akhil PB edited comment on YARN-8686 at 8/21/18 6:06 AM:
---------------------------------------------------------
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}
{code:java}
return Response.status(Status.BAD_REQUEST).entity(e.getMessage())
.build();
{code}
was (Author: akhilpb):
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: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org