IT / Java / BigData

simply about difficult

Tag: exit code

  • March 5, 2021August 10, 2021
  • Hadoop, Java, Spring Boot
  • Leave a comment

Why the AppMaster receives a different error code from the container Spring Boot Yarn

In the previous article, we already figured out how to terminate a container with a specific exit code. To begin with, the return value must be smaller then 256. You can notice that: If you terminate the container with a code of 0 or some other positive number, then the same code will be sent […]

READ MORE
  • March 5, 2021August 10, 2021
  • Hadoop, Java, Spring Boot
  • Leave a comment

How to set up exit code on Spring Boot Yarn container

You need to mark container’s start class using the @YarnComponent and mark method with the @OnContainerStart annotations: Despite the fact that the description of the annotation says that it cannot return anything, the return value works. We make the return value of type int. 0 – means successful shutdown of the container, non-zero values – […]

READ MORE
  • January 14, 2021March 5, 2021
  • Hadoop, Java, Spring Boot
  • Leave a comment

Setting application FAILED exit status Spring Boot Yarn

Let’s say we need to terminate Spring Boot Yarn application due to checked exception. To do this, in the AppMaster class (it must be specified in the appmaster-class property in application.yml) we need to call the method in the place we need: If you need to stop the application from outside the AppMaster class, you can […]

READ MORE

                   Mark Chesnavsky. Email me or connect via LinkedIn.