티스토리 뷰

공부

[Java] list files in directory

승가비 2020. 6. 26. 01:10
728x90

https://stackoverflow.com/questions/33394884/spark-scala-list-folders-in-directory/41561019

 

Spark Scala list folders in directory

I want to list all folders within a hdfs directory using Scala/Spark. In Hadoop I can do this by using the command: hadoop fs -ls hdfs://sandbox.hortonworks.com/demo/ I tried it with: val conf = ...

stackoverflow.com

 

728x90
댓글