-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-20741][Spark Submit] Added cleanup of JARs archive generated by SparkSubmit #17986
Conversation
That seems OK to me. It might be a good time to address similar issues elsewhere. For instance, look at |
I don't think this is really necessary. These files are created in If you really want to fix this instance, it may be better to follow Sean's suggestion and fix all instances, creating an explicit temporary directory where the files are stored. All this is going to do, though, is to delete the files earlier - they'd still be deleted when the process exits. |
Actually I ran into a problem with this not getting cleaned up. |
It might be a good idea to do it, but then you can't just add this one line, you have to look at all the temp files that Client.scala generates. |
@liorregev if you'll take care of a couple other cases like this here, it looks OK to merge. Proactively cleaning up seems reasonable. |
Test build #3751 has finished for PR 17986 at commit
|
Test build #3753 has finished for PR 17986 at commit
|
Merged to master/2.2. It's a win and on second look it wasn't obvious that there's another instance of this that can safely be cleaned up. |
…y SparkSubmit ## What changes were proposed in this pull request? Deleted generated JARs archive after distribution to HDFS ## How was this patch tested? Please review http://spark.apache.org/contributing.html before opening a pull request. Author: Lior Regev <lioregev@gmail.com> Closes #17986 from liorregev/master. (cherry picked from commit 7306d55) Signed-off-by: Sean Owen <sowen@cloudera.com>
What changes were proposed in this pull request?
Deleted generated JARs archive after distribution to HDFS
How was this patch tested?
Please review http://spark.apache.org/contributing.html before opening a pull request.