Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hadoop YARN how to determine the number of containers

I have deployed Hadoop 2.3 as a single node cluster . Since YARN allocates resources as a unit which is termed as a container , how would I know how many containers are running in my single node cluster (by looking at logs, console etc)? .

I could not find any way to determine that , could someone please guide me to see the number or containers that are being utilized and hopefully the total number of JVMs from there ?

Thanks in advance!

like image 901
user1965449 Avatar asked Mar 11 '14 05:03

user1965449


People also ask

What is container in Hadoop YARN?

A Container grants rights to an application to use a specific amount of resources (memory, cpu etc.) on a specific host. The ApplicationMaster has to take the Container and present it to the NodeManager managing the host, on which the container was allocated, to use the resources for launching its tasks.

What is running containers in YARN?

In simple terms, Container is a place where a YARN application is run. It is available in each node. Application Master negotiates container with the scheduler(one of the component of Resource Manager). Containers are launched by Node Manager.

What is YARN node container?

Yarn container are a process space where a given task in isolation using resources from resources pool. It's the authority of the resource manager to assign any container to applications. The assign container has a unique customerID and is always on a single node.


1 Answers

If cluster is up and running you can see it on web app of cluster

http://<namenode_hostname>:8088/cluster

where port number can be configured in yarn-site with property following yarn.resourcemanager.webapp.address

The number of containers depends on resource (cpu,memory) availability.

Following document can give better understanding of container size and container numbers. Please refer

Determine YARN and MapReduce Memory Configuration Settings

like image 152
Sandy Avatar answered Oct 08 '22 15:10

Sandy