Cleaned up HDFS interactions.