spark read hdfs directory recursive code example Example: spark read hdfs directory recursive scala>sc.textFile("path/*/*")