I am having trouble identifying the differences between the ApplicationMaster and NodeManager in the Hadoop 2.0 architecture.
I know that the ApplicationMaster is responsible for running the map and reduce tasks and it retrieves containers to run these tasks by coordinating with the ResourceManager.
But I am confused on the purpose of the NodeManager. Does the NodeManager create the containers for the ApplicationMaster (to run those map and reduce tasks) or does the ResourceManager create the containers for the ApplicationMaster (to run those map and reduce tasks) and the NodeManager just manages the health of the node, securely place files and directories needed by containers for the ApplicationMaster, and monitor the container's resource usage, etc.