Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4793 [Umbrella] Simplified API layer for services and beyond
  3. YARN-5985

Fix native services API JsonMappingException for PlacementPolicy

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • None
    • None

    Description

      I tried setting placement_policy in the native services API and got the following exception:

      {"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"}
      

      Attachments

        Activity

          People

            gsaha Gour Saha
            billie Billie Rinaldi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: