Hi , I have set property "hive.exec.stagingdir" to hdfs dir "/tmp/spark_log/${user.name}/.hive-staging" in hive-site.xml ,but it not effect in spark2.0.1, directory name that still be created inside table locations .It works in spark 1.6,and creates hive-staging files in hdfs dir "/tmp/spark_log/${user.name}/.hive-staging",so I can use shell to delete batch files.