-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-5825] [Spark Submit] Remove the double checking instance name when stopping the service #4611
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
Conversation
Test build #27510 has started for PR 4611 at commit
|
#4382 failed due to the |
Test build #27510 has finished for PR 4611 at commit
|
Test PASSed. |
I don't think we want to take out this check entirely. This was changed recently to not just test whether the process can be killed (with What about a weaker check like just grepping for |
f1bef66
to
0b9ea52
Compare
Thank you @srowen for the explanation, I've updated the script, can you review it again? |
Test build #27537 has started for PR 4611 at commit
|
Test build #27537 has finished for PR 4611 at commit
|
Test PASSed. |
This uses |
@srowen, I was trying something like
|
@chenghao-intel ah, looks like the default behavior on OS X is different from Linux. Try |
@srowen I've tested that both under ubuntu 12.04 and centos 6.5, |
Gotcha. OK. Until someone thinks of a more robust check, I think we can resort to just checking if |
0b9ea52
to
a0051f6
Compare
Test build #27670 has started for PR 4611 at commit
|
Thank you @srowen , I've updated the script, seems much simpler. Appreciated if you can confirm the change under OS X, sorry, I don't have machine with OS X. |
Test build #27670 has finished for PR 4611 at commit
|
Test PASSed. |
As I say on OS X you get the whole binary path, not just
that's why I was thinking
|
Bash style for this change is fine, though there are other areas in this script with word splitting problems, unfortunately (e.g. some references to |
@srowen it actually does a
This seems like what we want, so I'm going to merge this into master 1.3 and 1.2 thanks @chenghao-intel |
…when stopping the service `spark-daemon.sh` will confirm the process id by fuzzy matching the class name while stopping the service, however, it will fail if the java process arguments is very long (greater than 4096 characters). This PR looses the check for the service process. Author: Cheng Hao <hao.cheng@intel.com> Closes #4611 from chenghao-intel/stopping_service and squashes the following commits: a0051f6 [Cheng Hao] loosen the process checking while stopping a service (cherry picked from commit 94cdb05) Signed-off-by: Andrew Or <andrew@databricks.com>
…when stopping the service `spark-daemon.sh` will confirm the process id by fuzzy matching the class name while stopping the service, however, it will fail if the java process arguments is very long (greater than 4096 characters). This PR looses the check for the service process. Author: Cheng Hao <hao.cheng@intel.com> Closes #4611 from chenghao-intel/stopping_service and squashes the following commits: a0051f6 [Cheng Hao] loosen the process checking while stopping a service (cherry picked from commit 94cdb05) Signed-off-by: Andrew Or <andrew@databricks.com>
@andrewor14 Ah! right of course. I looked right past that. Yes that's a good change then. |
…when stopping the service `spark-daemon.sh` will confirm the process id by fuzzy matching the class name while stopping the service, however, it will fail if the java process arguments is very long (greater than 4096 characters). This PR looses the check for the service process. Author: Cheng Hao <hao.cheng@intel.com> Closes apache#4611 from chenghao-intel/stopping_service and squashes the following commits: a0051f6 [Cheng Hao] loosen the process checking while stopping a service (cherry picked from commit 94cdb05) Signed-off-by: Andrew Or <andrew@databricks.com>
spark-daemon.sh
will confirm the process id by fuzzy matching the class name while stopping the service, however, it will fail if the java process arguments is very long (greater than 4096 characters).This PR looses the check for the service process.