GitHub user zuotingbing reopened 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(`./sbin/start-thriftserver.sh`), we create some directories for hive.downloaded.resources.dir, but when stop the HiveThriftServer2(`./sbin/stop-thriftserver.sh`), we do not remove these directories.The directories could accumulate a lot. ## How was this patch tested? manual tests 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 ---- commit b177bf441a04c0a700e33d7e40c1b2408c3c0c3b Author: zuotingbing <zuo.tingbing9@...> Date: 2018-03-20T09:57:28Z [SPARK-23745][SQL]Remove the directories of the âhive.downloaded.resources.dirâ when HiveThriftServer2 stopped ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org