In the Hadoop ecosystem, which component is primarily responsible for resource management and job scheduling?