Github user sryza commented on a diff in the pull request:
https://github.com/apache/spark/pull/4050#discussion_r22972019
--- Diff: core/src/main/scala/org/apache/spark/rdd/HadoopRDD.scala ---
@@ -219,6 +220,9 @@ class HadoopRDD[K, V](
val bytesReadCallback = if
(split.inputSplit.value.isInstanceOf[FileSplit]) {
SparkHadoopUtil.get.getFSBytesReadOnThreadCallback(
split.inputSplit.value.asInstanceOf[FileSplit].getPath, jobConf)
+ } else if (split.inputSplit.value.isInstanceOf[CombineFileSplit]) {
+ SparkHadoopUtil.get.getFSBytesReadOnThreadCallback(
+
split.inputSplit.value.asInstanceOf[CombineFileSplit].getPath(0), jobConf)
--- End diff --
The issue is that those are actually two different classes. There's a
CombineFileSplit for the old MR API (used by HadoopRDD) and a CombineFileSplit
for the new one (used by NewHadoopRDD).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]