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 "Gour Saha (JIRA)" <ji...@apache.org> on 2016/12/08 21:41:58 UTC

[jira] [Commented] (YARN-5985) Fix native services API JsonMappingException for PlacementPolicy

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

Gour Saha commented on YARN-5985:
---------------------------------

[~billie.rinaldi] thank you for finding this issue. Please review the 001 patch.

> Fix native services API JsonMappingException for PlacementPolicy
> ----------------------------------------------------------------
>
>                 Key: YARN-5985
>                 URL: https://issues.apache.org/jira/browse/YARN-5985
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Billie Rinaldi
>            Assignee: Gour Saha
>             Fix For: yarn-native-services
>
>         Attachments: YARN-5985-yarn-native-services.001.patch
>
>
> I tried setting placement_policy in the native services API and got the following exception: 
> {noformat}
> {"exception":"JsonMappingException","message":"Can not instantiate value of type [simple type, class org.apache.hadoop.yarn.services.resource.PlacementPolicy] from JSON String; no single-String constructor/factory method (through reference chain: org.apache.hadoop.yarn.services.resource.Application[\"components\"]->org.apache.hadoop.yarn.services.resource.Component[\"placement_policy\"])","javaClassName":"org.codehaus.jackson.map.JsonMappingException"}
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org