hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunil G (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-5203) Return ResourceRequest JAXB object in ResourceManager Cluster Applications REST API
Date Mon, 11 Jul 2016 10:40:11 GMT

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

Sunil G commented on YARN-5203:
-------------------------------


Before:
{noformat}
        "resourceRequests": [
            {
                "capability": {
                    "memory": 2048,
                    "virtualCores": 1
                },
                "nodeLabelExpression": "",
                "numContainers": 0,
                "priority": {
                    "priority": 0
                },
                "relaxLocality": true,
                "resourceName": "*"
            },
            {
                "capability": {
                    "memory": 2048,
                    "virtualCores": 1
                },
                "nodeLabelExpression": "",
                "numContainers": 7,
                "priority": {
                    "priority": 20
                },
                "relaxLocality": true,
                "resourceName": "*"
            }
        ],
{noformat}

After:{noformat}
        "resourceRequests": [
            {
                "priority": 0,
                "resourceName": "*",
                "capability": {
                    "memory": 2048,
                    "vCores": 1
                },
                "numContainers": 0,
                "relaxLocality": true,
                "nodeLabelExpression": ""
            },
            {
                "priority": 20,
                "resourceName": "*",
                "capability": {
                    "memory": 2048,
                    "vCores": 1
                },
                "numContainers": 7,
                "relaxLocality": true,
                "nodeLabelExpression": ""
            }
        ],
{noformat}

I think the new proposed change is definitely making a cleaner o/p. But for compatibility,
its better if we name the new one as {{resourceRequestsInfo}} if its fine.

> Return ResourceRequest JAXB object in ResourceManager Cluster Applications REST API
> -----------------------------------------------------------------------------------
>
>                 Key: YARN-5203
>                 URL: https://issues.apache.org/jira/browse/YARN-5203
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Subru Krishnan
>            Assignee: Ellen Hui
>         Attachments: YARN-5203.v0.patch
>
>
> The ResourceManager Cluster Applications REST API returns {{ResourceRequest}} as String
rather than a JAXB object. This prevents downstream tools like Federation Router (YARN-3659)
that depend on the REST API to unmarshall the {{AppInfo}}. This JIRA proposes updating {{AppInfo}}
to return a JAXB version of the {{ResourceRequest}}.



--
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


Mime
View raw message