Use temporary directory instead of hdfs for testing.