Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.4.4, 3.0.0
-
None
Description
StreamFileInputFormat and WholeTextFileInputFormat(https://issues.apache.org/jira/browse/SPARK-24610) have the same problem: for small sized files, the computed maxSplitSize by `StreamFileInputFormat ` is way smaller than the default or commonly used split size of 64/128M and spark throws an exception while trying to read them.
Exception info:
Minimum split size pernode 5123456 cannot be larger than maximum split size 4194304 java.io.IOException: Minimum split size pernode 5123456 cannot be larger than maximum split size 4194304 at org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat.getSplits(CombineFileInputFormat.java: 201) at org.apache.spark.rdd.BinaryFileRDD.getPartitions(BinaryFileRDD.scala:52) at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:254) at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:252) at scala.Option.getOrElse(Option.scala:121) at org.apache.spark.rdd.RDD.partitions(RDD.scala:252) at org.apache.spark.SparkContext.runJob(SparkContext.scala:2138)
Attachments
Issue Links
- relates to
-
SPARK-24610 wholeTextFiles broken for small files
- Resolved
- links to