[
https://issues.apache.org/jira/browse/YARN-8685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16587317#comment-16587317
]
Weiwei Yang commented on YARN-8685:
-----------------------------------
Hi [~Tao Yang]
Can we add a new endpoint in RM something like
{noformat}
http://<rm http address:port>/ws/v1/cluster/containers/{nodeId}?states=ALLOCATED
{noformat}
to display RM containers. Where query parameter \{{state}} is an optional
filter, a comma list of states. This way we avoid returning too much info in a
single API. And second, can we pull out the the \{{ContainerInfo}} to
{{hadoop-yarn-common/o.a.h.y.webapp.dao}} so it can be shared by both RM and NM
containers endpoints?
> Add containers query support for nodes/node REST API in RMWebServices
> ---------------------------------------------------------------------
>
> Key: YARN-8685
> URL: https://issues.apache.org/jira/browse/YARN-8685
> Project: Hadoop YARN
> Issue Type: Improvement
> Components: restapi
> Affects Versions: 3.2.0
> Reporter: Tao Yang
> Assignee: Tao Yang
> Priority: Major
> Attachments: YARN-8685.001.patch
>
>
> Currently we can only query running containers from NM containers REST API,
> but can't get the valid containers which are in ALLOCATED/ACQUIRED state. We
> have the requirements to get all containers allocated on specified nodes for
> debugging. I want to add a "includeContainers" query param (default false)
> for nodes/node REST API in RMWebServices, so that we can get valid containers
> on nodes if "includeContainers=true" specified.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]