GitHub user figo77 opened a pull request:

    https://github.com/apache/spark/pull/19035

    [SPARK-21822][SQL]When insert Hive Table is finished, it is better to clean 
out the tmpLocation dir

    
    ## What changes were proposed in this pull request?
    
    When insert Hive Table is finished, it is better to clean out the 
tmpLocation dir(the temp directories like 
".hive-staging_hive_2017-08-19_10-56-01_540_5448395226195533570-9/-ext-10000" 
or "/tmp/hive/..." for an old spark version).
    Otherwise, when lots of spark job are executed, millions of temporary 
directories are left in HDFS. And these temporary directories can only be 
deleted by the maintainer through the shell script.
    
    ## How was this patch tested?
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/figo77/spark del_tmpdir

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/19035.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 #19035
    
----
commit 93e716b544665fa42d89d3df4935fa0f38c78dea
Author: lufei <lu.fe...@zte.com.cn>
Date:   2017-08-24T06:28:04Z

    When insert Hive Table is finished, it is better to clean out the 
tmpLocation dir

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to