H13-711_V3.5 · Question #331
The applicationMaster uses polling to apply for and receive resources from the ResourceManager through the RPC protocol.
The correct answer is A. True. Option A is correct because in YARN, the ApplicationMaster communicates with the ResourceManager via the ApplicationMasterProtocol RPC interface, and this interaction is polling-based - the AM periodically calls allocate() on the RM to submit resource requests (ResourceRequest…
Question
The applicationMaster uses polling to apply for and receive resources from the ResourceManager through the RPC protocol.
Options
- ATrue
- BFalse
How the community answered
(36 responses)- A75% (27)
- B25% (9)
Explanation
Option A is correct because in YARN, the ApplicationMaster communicates with the ResourceManager via the ApplicationMasterProtocol RPC interface, and this interaction is polling-based - the AM periodically calls allocate() on the RM to submit resource requests (ResourceRequest objects) and simultaneously receive any newly allocated containers in the response. This heartbeat-style polling serves a dual purpose: resource negotiation and liveness detection (the RM knows the AM is still alive as long as it keeps polling). Since this polling mechanism is the actual design of YARN's AM-RM protocol, option B (False) is incorrect - there is no push or callback model where the RM proactively notifies the AM of available resources.
Memory tip: Think of the AM as a job seeker who must keep calling the office (polling via RPC) to both submit applications and hear back - the office never calls you first.
Topics
Community Discussion
No community discussion yet for this question.