Configuration file | Configuration item | Recommended value | Description |
yarn-site.xml | yarn.resourcemanager.ha.enabled | true | Specifies whether to enable the RM HA feature. Default value: false. |
yarn.resourcemanager.ha.automatic-failover.enabled | true or left empty | Specifies whether to enable automatic failover. Default value: true. |
yarn.resourcemanager.ha.automatic-failover.embedded | true or left empty | Specifies whether to use the embedded leader elector to elect the active ResourceManager. Default value: true. |
yarn.resourcemanager.ha.curator-leader-elector.enabled | true | Specifies whether to use non-curator components. Default value: false. |
yarn.resourcemanager.ha.automatic-failover.zk-base-path | Left empty | The root directory in which the leader elector of ZooKeeper is stored. Default value: /yarn-leader-election. |
yarn.resourcemanager.ha.rm-ids | rm1,rm2,rm3 | The IDs of multiple ResourceManagers. Separate multiple ResourceManager IDs with commas (,). |
yarn.resourcemanager.cluster-id | <cluster-id> | The ID of the cluster. The storage path of RM HA relies on this configuration item. |
yarn.resourcemanager.hostname.<rm-id> | Left empty | The hostname of a ResourceManager. This configuration is a ResourceManager instance-level configuration. Multiple ResourceManager instances exist. |
yarn.resourcemanager.address.<rm-id> | Left empty | The remote procedure call (RPC) address that is used by the YARN client to submit jobs. This configuration is a ResourceManager instance-level configuration. Multiple ResourceManager instances exist. |
yarn.resourcemanager.scheduler.address.<rm-id> | Left empty | The RPC address from which ApplicationMasters request resources. This configuration is a ResourceManager instance-level configuration. Multiple ResourceManager instances exist. |
yarn.resourcemanager.resource-tracker.address.<rm-id> | Left empty | The RPC address that is used by a NodeManager to report the status of resources and containers. This configuration is a ResourceManager instance-level configuration. Multiple ResourceManager instances exist. |
yarn.resourcemanager.admin.address.<rm-id> | Left empty | The RPC address to which the Admin command is submitted. This configuration is a ResourceManager instance-level configuration. Multiple ResourceManager instances exist. |
yarn.resourcemanager.webapp.address.<rm-id> | Left empty | The HTTP address that is used to access the web UI of ResourceManager. This configuration is a ResourceManager instance-level configuration. Multiple ResourceManager instances exist. |
yarn.resourcemanager.webapp.https.address.<rm-id> | Left empty | The HTTPS address that is used to access the web UI of ResourceManager. This configuration item is available only if you set the yarn.http.policy parameter to HTTPS_ONLY. This configuration is a ResourceManager instance-level configuration. Multiple ResourceManager instances exist. |