List out the difference between textFile and wholeTextFile in Apache Spark?
Answer Posted / Joginder
textFile: It is used to read large text files that are splittable, i.e., files which can be split into smaller pieces for processing parallelly. Each line of the file becomes a separate record.nwholeTextFiles: It is used to read large un-splittable text files as a single document instead of splitting them into multiple lines. This method avoids the overhead of splitting and reading small chunks, improving performance on certain use cases.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers