报错信息: Caused by: java.io.IOException: Path: //single is a directory, which is not supported by the record reader when `mapreduce.input.fileinputformat.input.dir.recursive` is false. 问题解决 spark读入的路径和最终输出落盘的路径不能一致,否则会触发io异常