I have a data frame as follows. It contains hdfs file path. I would like to read the values and then read the contents of the file. What is the best way to solve this without any nested RDDs leveraging parallel processing. I am using Scala 2.11 and Spark 2.1
+--------------------+
| value|
+--------------------+
|hdfs://61.81.70.1...|
|hdfs://61.81.70.1...|
|hdfs://61.81.70.1...|
|hdfs://61.81.70.1...|
+--------------------+
Edit based on Ankush answer: The files are huge and can't be read using wholeTextFiles
Thank you