Are processes spawned by an app in a container still part of that container?

to create new topics or reply. | New User Registration

This topic contains 1 reply, has 2 voices, and was last updated by  Koelli Mungee 12 months ago.

  • Creator
  • #57955

    Michael Peterson

    Suppose my ApplicationMaster spawns a Java application in YARN container X. If that Java application spawns additional processes on its own (not via the Resource Manager), are those processes still considered as part of “container X”? Or are they off-the-radar of YARN since I didn’t register them with YARN.

    Suppose that the AppMaster says that Container X should have 512 MB of RAM and by itself it uses that much, but when it spawns another process (say a native app) that might take up a couple hundred megs of RAM on its own. Does that additional memory usage count against Container X’s utilization of resources in YARN’s bookeeping? Or does container == process (1 container has 1 process)?

Viewing 1 replies (of 1 total)

You must be to reply to this topic. | Create Account

  • Author
  • #58445

    Koelli Mungee

    Hi Michael,

    Yes, on Linux, all the processes in the process tree spawned by the application in a container do count towards the resource usage for the container.

    Hope this helps.

Viewing 1 replies (of 1 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.