Spark app for transforming the initial file into a more Spark-friendly format