Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
WeichenXu123 committed Jul 23, 2019
1 parent e6cf714 commit feb8dd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/scala/org/apache/spark/rdd/HadoopRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ class HadoopRDD[K, V](
val path = fileSplit.getPath
if (fileSplit.getLength > conf.get(IO_LOAD_LARGE_FILE_WARNING_THRESHOLD)) {
if (Utils.isFileSplittable(path, codecFactory)) {
logWarning("Loading one large file by one partition is slow, we can increase " +
"partition numbers by the `minPartitions` argument in method `sc.textFile`")
logWarning(s"Loading one large file ${path.toString} with only one partition, " +
s"we can increase partition numbers by the `minPartitions` argument in method " +
"`sc.textFile`")
} else {
logWarning(s"Loading one large unsplittable file ${path.toString} with only one " +
s"partition, because the file is compressed by unsplittable compression codec.")
Expand Down

0 comments on commit feb8dd0

Please sign in to comment.