The workers work for ResourceManager but are managed by the NodeManager.And the MRAppMaster works for your applications.