Guest User

Untitled

a guest
Sep 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. val conf = new Configuration()
  2. val fs = FileSystem.get(new java.net.URI("hdfs://servername/"), conf)
  3. val status = fs.listStatus(new Path("path/to/folder/"))
  4. status.foreach { x => println(x.getPath.toString()) }
Add Comment
Please, Sign In to add comment