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

Eric Yang commented on YARN-8299:
---------------------------------

The output of the CLI looks like this:
{code}
[hbase@eyang-1 hadoop-3.2.0-SNAPSHOT]$ ./bin/yarn container -list qqq -states 
RUNNING_BUT_UNREADY,READY|python -m json.tool
[
    {
        "bare_host": "eyang-4.openstacklocal",
        "component_instance_name": "ping-0",
        "hostname": "ping-0.qqq.hbase.ycluster",
        "id": "container_1531765479645_0002_01_000002",
        "ip": "172.26.111.21",
        "launch_time": 1531767377301,
        "state": "READY"
    },
    {
        "bare_host": "eyang-5.openstacklocal",
        "component_instance_name": "sleep-0",
        "hostname": "sleep-0.qqq.hbase.ycluster",
        "id": "container_1531765479645_0002_01_000004",
        "ip": "172.26.111.20",
        "launch_time": 1531767377710,
        "state": "READY"
    },
    {
        "bare_host": "eyang-4.openstacklocal",
        "component_instance_name": "sleep-1",
        "hostname": "sleep-1.qqq.hbase.ycluster",
        "id": "container_1531765479645_0002_01_000005",
        "ip": "172.26.111.21",
        "launch_time": 1531767378303,
        "state": "READY"
    },
    {
        "bare_host": "eyang-4.openstacklocal",
        "component_instance_name": "ping-1",
        "hostname": "ping-1.qqq.hbase.ycluster",
        "id": "container_1531765479645_0002_01_000007",
        "ip": "172.26.111.21",
        "launch_time": 1531767410395,
        "state": "RUNNING_BUT_UNREADY"
    }
]
{code}

If there are two components specified, it is not easy to identify which 
container belongs to which component.  It might be good to add component_name 
to the JSON to distinguish components.

> Yarn Service Upgrade: Add GET APIs that returns instances matching query 
> params
> -------------------------------------------------------------------------------
>
>                 Key: YARN-8299
>                 URL: https://issues.apache.org/jira/browse/YARN-8299
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Chandni Singh
>            Assignee: Chandni Singh
>            Priority: Major
>         Attachments: YARN-8299.001.patch, YARN-8299.002.patch, 
> YARN-8299.003.patch, YARN-8299.004.patch, YARN-8299.005.patch
>
>
> We need APIs that returns containers that match the query params. These are 
> needed so that we can find out what containers have been upgraded.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to