YARN Forum

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

  • #57955
    Michael Peterson
    Participant

    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)?

to create new topics or reply. | New User Registration

  • Author
    Replies
  • #58445
    Koelli Mungee
    Moderator

    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.
    -koelli

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

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

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.