Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val conf = new Configuration()
- val fs = FileSystem.get(new java.net.URI("hdfs://servername/"), conf)
- val status = fs.listStatus(new Path("path/to/folder/"))
- status.foreach { x => println(x.getPath.toString()) }
Add Comment
Please, Sign In to add comment