HIVE-2201:reduce name node calls in hive by creating temporary directories (Siying Dong via He Yongqiang)