Scala api for hdfs