AngersZhuuuu commented on a change in pull request #30027:
URL: https://github.com/apache/spark/pull/30027#discussion_r504402354



##########
File path: core/src/main/scala/org/apache/spark/rdd/HadoopRDD.scala
##########
@@ -232,6 +232,11 @@ class HadoopRDD[K, V](
         logWarning(s"${jobConf.get(FileInputFormat.INPUT_DIR)} doesn't exist 
and no" +
             s" partitions returned from this path.", e)
         Array.empty[Partition]
+      case e: IOException if e.getMessage.contains("Not a file") =>
+        val path = e.getMessage.split(":").map(_.trim).apply(2)
+        throw new IOException(s"Path: ${path} is a directory, it is not" +
+          s" allowed for `serde` reader when" +

Review comment:
       > How about:
   > 
   > ```
   > s"Path: ${path} is a directory, which is not supported by the record 
reader when `mapreduce.input.fileinputformat.input.dir.recursive` is false." 
   > ```
   
   updated




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to