GitHub user zuotingbing opened a pull request: https://github.com/apache/spark/pull/20864
[SPARK-23745][SQL]Remove the directories of the âhive.downloaded.resources.dirâ when HiveThriftServer2 stopped ## What changes were proposed in this pull request? ![2018-03-20_164832](https://user-images.githubusercontent.com/24823338/37647937-871ff346-2c68-11e8-9ca4-1b3ebb291530.png) when start the HiveThriftServer2, we create some directories for hive.downloaded.resources.dir, but when stop the HiveThriftServer2 we do not remove these directories.The directories could accumulate a lot. ## How was this patch tested? manual tests Please review http://spark.apache.org/contributing.html before opening a pull request. You can merge this pull request into a Git repository by running: $ git pull https://github.com/zuotingbing/spark SPARK-23745 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20864.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #20864 ---- ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org