Code-clean-up for upload to HDFS functionality only. Removed write to
local disk. Needs commenting.