Uh oh!
There was an error while loading. Please reload this page.
[SPARK-20428][Core]REST interface about 'v1/submissions/ kill/', currently only supports delete a single ‘driver’, now let spark support delete some ‘drivers’ - #17714
Conversation
…ucceeded|failed|unknown]
…remove redundant description.
…, currently only supports delete a single ‘driver’, now let spark support delete some ‘drivers’
guoxiaolongzte
commented
Apr 27, 2017
@HyukjinKwon Help with code review,thank you. |
HyukjinKwon
commented
Apr 28, 2017
I guess I am not used to this code path. Git blame says @tnachen changed the codes lately. |
guoxiaolongzte
commented
Apr 30, 2017
@tnachen Help with code review,thank you. |
| response: HttpServletResponse): Unit = { | ||
| val submissionId = parseSubmissionId(request.getPathInfo) | ||
| val responseMessage = submissionId.map(handleKill).getOrElse { | ||
| val submissionIds = parseSubmissionId(request.getPathInfo) |
There was a problem hiding this comment.
I don't think having submission Ids parsed on the request path is a good idea.
I would assume most use cases for batch delete is required when you have a larger number of drivers to delete (otherwise you would be fine just deleting a few one by one).
But most URLs are length limited.
You might be better have creating a new request for this that takes a body
@tnachen Batch delete e.g., Single delete e.g., |
guoxiaolongzte
commented
Jun 2, 2017
Hello, This PR has been created for some time now. please help to review the code,thanks. |
tnachen
commented
Jun 2, 2017
Unfortunately I'm not a committer, so need to loop in someone who is to help merge it though. @srowen do you know who's responsible for the general deploy package? |
guoxiaolongzte
commented
Jun 5, 2017
@srowen |
guoxiaolongzte
commented
Jun 5, 2017
@SparkQA please test it. |
jiangxb1987
commented
Jun 23, 2017
ok to test |
jiangxb1987
commented
Jun 23, 2017
One general question: what do we expect to gain from this improvement? Seems it's just looping the drivers and send kill requests? |
@jiangxb1987 |
Let me be explicit - I don't think the improvement is really needed in Spark, as long as it's just looping the drivers and sending blocking KillDriver messages, since we gain nothing on performance issue this way. If you have a huge cluster with many drivers dying simultaneously(which, in my mind, should be really extreme case), then it's fine you write a script to call from outside of Spark. |
gatorsmile
commented
Jun 27, 2017
Really appreciate your contribution! Sorry, based on the comment, we might need to close this PR, but please submit more PRs in the future. Thanks again! |
## What changes were proposed in this pull request? This PR proposes to close stale PRs, mostly the same instances with apache#18017 I believe the author in apache#14807 removed his account. Closesapache#7075Closesapache#8927Closesapache#9202Closesapache#9366Closesapache#10861Closesapache#11420Closesapache#12356Closesapache#13028Closesapache#13506Closesapache#14191Closesapache#14198Closesapache#14330Closesapache#14807Closesapache#15839Closesapache#16225Closesapache#16685Closesapache#16692Closesapache#16995Closesapache#17181Closesapache#17211Closesapache#17235Closesapache#17237Closesapache#17248Closesapache#17341Closesapache#17708Closesapache#17716Closesapache#17721Closesapache#17937 Added: Closesapache#14739Closesapache#17139Closesapache#17445Closesapache#18042Closesapache#18359 Added: Closesapache#16450Closesapache#16525Closesapache#17738 Added: Closesapache#16458Closesapache#16508Closesapache#17714 Added: Closesapache#17830Closesapache#14742 ## How was this patch tested? N/A Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#18417 from HyukjinKwon/close-stale-pr.
What changes were proposed in this pull request?
Make a post REST interface request:
http://ip:6066/v1/submissions/kill/driver-20170421111514-0000
Currently only supports delete a single ‘driver’.But our large data management platform, hope to delete some 'drivers' in a request.
Because these drivers may be abnormal situation.
Now i let spark support delete some ‘drivers’.
When a post request:
http://zdh120:6066/v1/submissions/kill/**driver-20170421111514-0000,driver-20170421111515-0001,driver-20170421111517-0002,driver-20170421111517-0003**
'submissionId' must be separated by commas.Through this interface, I can delete four drivers in a request together.
How was this patch tested?
manual tests
Please review http://spark.apache.org/contributing.html before opening a pull request.