How to immediately terminate the Spring Boot Yarn container with an error

Imagine an error or exception occurs while running the Spring Boot Yarn container, and we need to kill container from itself and return an error code. You can use @OnContainerStart annotation as mentioned in this article: https://mchesnavsky.tech/how-to-set-up-exit-code-on-spring-boot-yarn-container. But if we need to stop the container immediately, we just need to call: – where parameter is […]

READ MORE

Force kill the process by name Linux

Suppose that you need to force kill a process by name or parameters in Linux. You can do it using this bash command: Let’s analyze this set of the commands: Execute ps ax. This command will list the processes on the system. Next, we find in this list those processes that have the text in […]

READ MORE