You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/07/15 22:06:20 UTC
[jira] [Resolved] (SPARK-13071) Coalescing HadoopRDD overwrites
existing input metrics
[ https://issues.apache.org/jira/browse/SPARK-13071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin resolved SPARK-13071.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
> Coalescing HadoopRDD overwrites existing input metrics
> ------------------------------------------------------
>
> Key: SPARK-13071
> URL: https://issues.apache.org/jira/browse/SPARK-13071
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 2.0.0
> Reporter: Andrew Or
> Assignee: Andrew Or
> Fix For: 2.0.0
>
>
> Currently if we do the following in Hadoop 2.5+:
> {code}
> sc.textFile(..., 4).coalesce(2).collect()
> {code}
> We'll get incorrect `InputMetrics#bytesRead`. This is because HadoopRDD's compute method overwrites any existing value of `bytesRead`, and in the case of coalesce we'll end up calling `compute` multiple times in the same task.
> This is why InputOutputMetricsSuite is failing in master, but only for hadoop2.6/2.7: https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.7/67/
> This was caused by https://github.com/apache/spark/pull/10835.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org