Scala+Spark file converter