Prepare files for storage in HDFS