Adds HDFS method to create a tmp dir.