My Java application runs on mapper and creates child processes using the Qubole API. The application stores child quoble queryIDs. I need to intercept the kill signal and close the child processes before exiting. hadoop job -kill jobId and yarn application -kill applicationId commands kill the job in SIGKILL mode, I donβt know how to intercept the shutdown. Is there any way to intercept the destruction of a job or configure hadoop so that the application can shut down correctly?
The application successfully intercepts shutdown with ShutdownHook at local launch, and not in the mapper container, and can terminate its child processes.
Please tell me how to intercept the shutdown when working in the mapper, or maybe I'm doing something wrong?
java mapreduce hadoop qubole
leftjoin
source share