Github user davies commented on the pull request:
https://github.com/apache/spark/pull/1643#issuecomment-50700224
I had tried these two approach, we have not easy way to get PIDs of
workers, because it's platform dependent. Sending command to Python daemon will
also need the identity of worker, it will need another channel to send commands.
If there are exceptions in Java reading/writing threads, which may lead to
close the socket, so we still need this kind of method to kill worker if the
socket is closed.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---