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

Akhil PB commented on YARN-5705:
--------------------------------

Hi [~haibochen]
The issue you mentioned is because of cpu vcores and memory are absent in the 
response from ATSv2, sometimes cpu and memory are 0, and sometimes vcores is 
just negative value. So it's something related to ATSv2. UI just renders what 
we get from ATSv2.
See {{metrics}} in the following responses.

{code}
[{
        "metrics": [{
                "type": "SINGLE_VALUE",
                "id": "CPU",
                "aggregationOp": "NOP",
                "values": {
                        "1495147457276": 0
                }
        }, {
                "type": "SINGLE_VALUE",
                "id": "MEMORY",
                "aggregationOp": "NOP",
                "values": {
                        "1495147457276": 400232448
                }
        }],
        "events": [],
        "id": "root@skumpf-cbtest111-master-1/1495146814732",
        "type": "YARN_FLOW_RUN",
        "createdtime": 1495146814732,
        "info": {
                "UID": 
"yarn-cluster!root!skumpf-cbtest111-master-1!1495146814732",
                "SYSTEM_INFO_FLOW_RUN_END_TIME": 1495147447880,
                "SYSTEM_INFO_FLOW_NAME": "skumpf-cbtest111-master-1",
                "SYSTEM_INFO_USER": "root",
                "SYSTEM_INFO_FLOW_RUN_ID": 1495146814732
        },
        "isrelatedto": {},
        "relatesto": {}
}]
{code}

{code}
[{
        "metrics": [{
                "type": "SINGLE_VALUE",
                "id": "CPU",
                "aggregationOp": "NOP",
                "values": {
                        "1495021895212": -3
                }
        }, {
                "type": "SINGLE_VALUE",
                "id": "MEMORY",
                "aggregationOp": "NOP",
                "values": {
                        "1495021895212": 836755456
                }
        }],
        "events": [],
        "id": "root@akhil-hbase-demo-02/1495021749025",
        "type": "YARN_FLOW_RUN",
        "createdtime": 1495021749025,
        "info": {
                "UID": "yarn-cluster!root!akhil-hbase-demo-02!1495021749025",
                "SYSTEM_INFO_FLOW_RUN_END_TIME": 1495021935893,
                "SYSTEM_INFO_FLOW_NAME": "akhil-hbase-demo-02",
                "SYSTEM_INFO_USER": "root",
                "SYSTEM_INFO_FLOW_RUN_ID": 1495021749025
        },
        "isrelatedto": {},
        "relatesto": {}
}]
{code}

{code}
[{
        "metrics": [],
        "events": [],
        "id": "root@dh591/1494345602425",
        "type": "YARN_FLOW_RUN",
        "createdtime": 1494345602425,
        "info": {
                "UID": "yarn-cluster!root!dh591!1494345602425",
                "SYSTEM_INFO_FLOW_RUN_END_TIME": 1494349248086,
                "SYSTEM_INFO_FLOW_NAME": "dh591",
                "SYSTEM_INFO_USER": "root",
                "SYSTEM_INFO_FLOW_RUN_ID": 1494345602425
        },
        "isrelatedto": {},
        "relatesto": {}
}]
{code}

{{Note: I will be adding a fix to show 'N/A' for "CPU VCores" and "Memory Used" 
if those are not present in ATSv2 response, otherwise will display whatever ATS 
gives, even it is 0.}}

cc/ [~sunilg]

> [YARN-3368] Add support for Timeline V2 to new web UI
> -----------------------------------------------------
>
>                 Key: YARN-5705
>                 URL: https://issues.apache.org/jira/browse/YARN-5705
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Sunil G
>            Assignee: Akhil PB
>              Labels: oct16-hard
>         Attachments: Screenshots.zip, YARN-5705.001.patch, 
> YARN-5705.002.patch, YARN-5705.003.patch, YARN-5705.004.patch, 
> YARN-5705.005.patch, YARN-5705.006.patch, YARN-5705.007.patch, 
> YARN-5705.008.patch, YARN-5705.009.patch, YARN-5705.010.patch, 
> YARN-5705.011.patch, YARN-5705.012.patch, YARN-5705.013.patch, 
> YARN-5705.014.patch, YARN-5705.015.patch, YARN-5705.016.patch, 
> YARN-5705-YARN-3368.001.patch, YARN-5705-YARN-3368.002.patch, 
> YARN-5705-YARN-3368.003.patch, YARN-5705-YARN-3368.004.patch
>
>
> Integrate timeline v2 to YARN-3368. This is a clone JIRA for YARN-4097



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to