Input and output to hdfs.