AngersZhuuuu opened a new pull request #33869: URL: https://github.com/apache/spark/pull/33869
### What changes were proposed in this pull request? Since user always use ctrl+c to stop a starting SC when register with yarn in client mode when resources are tight. In this time, sc have not register the Shutdown hook, this cause we can't call sc.stop() when exit the application. We should register the ShutdownHook earily ### Why are the changes needed? Make the calling process more completed. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Not need -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
