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

Varun Saxena commented on MAPREDUCE-6720:
-----------------------------------------

And the JSON for the 4 tasks associated with app application_1466276553502_0005 
is as under :
{noformat}
[
{
metrics: [
{
type: "SINGLE_VALUE",
id: "org.apache.hadoop.mapreduce.FileSystemCounter:FILE_BYTES_WRITTEN",
aggregationOp: "NOP",
values: {
1466278879139: 155918
}
}
],
events: [ ],
id: "task_1466276553502_0005_r_000001",
type: "MAPREDUCE_TASK",
createdtime: 1466278864644,
info: {},
configs: { },
isrelatedto: { },
relatesto: { }
},
{
metrics: [
{
type: "SINGLE_VALUE",
id: "org.apache.hadoop.mapreduce.FileSystemCounter:FILE_BYTES_WRITTEN",
aggregationOp: "NOP",
values: {
1466278872325: 156003
}
}
],
events: [ ],
id: "task_1466276553502_0005_m_000001",
type: "MAPREDUCE_TASK",
createdtime: 1466278864643,
info: {},
configs: { },
isrelatedto: { },
relatesto: { }
},
{
metrics: [
{
type: "SINGLE_VALUE",
id: "org.apache.hadoop.mapreduce.FileSystemCounter:FILE_BYTES_WRITTEN",
aggregationOp: "NOP",
values: {
1466278879227: 155918
}
}
],
events: [ ],
id: "task_1466276553502_0005_r_000000",
type: "MAPREDUCE_TASK",
createdtime: 1466278864643,
info: {},
configs: { },
isrelatedto: { },
relatesto: { }
},
{
metrics: [
{
type: "SINGLE_VALUE",
id: "org.apache.hadoop.mapreduce.FileSystemCounter:FILE_BYTES_WRITTEN",
aggregationOp: "NOP",
values: {
1466278871380: 156003
}
}
],
events: [ ],
id: "task_1466276553502_0005_m_000000",
type: "MAPREDUCE_TASK",
createdtime: 1466278864642,
info: {},
configs: { },
isrelatedto: { },
relatesto: { }
}
]
{noformat}

We can see the same values in Job History Server as well. Have attached 
screenshots above.

> Inconsistent values of counters across tasks and job reported to timeline 
> service.
> ----------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6720
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6720
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: applicationmaster
>    Affects Versions: YARN-2928
>            Reporter: Varun Saxena
>
> While testing found below issue. For some of the task counters, we do not 
> have consistent values. This is not the case with every counter though.
> Consider the case of counter 
> "org.apache.hadoop.mapreduce.FileSystemCounter:FILE_BYTES_WRITTEN".
> I found that its value for a flow I ran, was 936018 bytes. For the 3 apps 
> associated with this flow run, the values were 312006 bytes each (which 
> equals to value for a flow run i.e. 3 * 312006 = 936018). Drilling further 
> down I found though that for one of the apps, the 4 tasks(2 mappers and 2 
> reducers) had values as 155918 bytes each for the 2 reducers and 156003 bytes 
> each for the 2 mappers.
> This means the value reported for the app should be (2 * 156003 + 2* 155918) 
> or 623842 bytes but it is only 312006 bytes which indicates that only counter 
> value of mappers is being picked up.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to