Hadoop YARN how to determine the number of containers

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

I could not find a way to determine this, could someone please direct me to see the number or containers that are used and, hopefully, the total number of JVMs from there?

Thanks in advance!

+6
source share
1 answer

If the cluster is up and running, you can see it in the cluster web application

http://<namenode_hostname>:8088/cluster 

where the port number can be configured in the site with the yarn.resourcemanager.webapp.address property specified

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

The following document may better understand container size and container numbers. Please contact

Define YARN and MapReduce configuration settings

+2
source

All Articles