YARN-11316. Fix Yarn federation.md table format. (#4935)
This commit is contained in:
parent
aeba204fa2
commit
0e65f4cc04
|
@ -164,7 +164,7 @@ These are common configurations that should appear in the **conf/yarn-site.xml**
|
||||||
|
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
|`yarn.federation.enabled` | `true` | Whether federation is enabled or not |
|
|`yarn.federation.enabled` | `true` | Whether federation is enabled or not |
|
||||||
|`yarn.resourcemanager.cluster-id` | `<unique-subcluster-id>` | The unique subcluster identifier for this RM (same as the one used for HA). |
|
|`yarn.resourcemanager.cluster-id` | `<unique-subcluster-id>` | The unique subcluster identifier for this RM (same as the one used for HA). |
|
||||||
|
|
||||||
|
@ -177,14 +177,14 @@ Currently, we support ZooKeeper and SQL based implementations of the state-store
|
||||||
ZooKeeper: one must set the ZooKeeper settings for Hadoop:
|
ZooKeeper: one must set the ZooKeeper settings for Hadoop:
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
|`yarn.federation.state-store.class` | `org.apache.hadoop.yarn.server.federation.store.impl.ZookeeperFederationStateStore` | The type of state-store to use. |
|
|`yarn.federation.state-store.class` | `org.apache.hadoop.yarn.server.federation.store.impl.ZookeeperFederationStateStore` | The type of state-store to use. |
|
||||||
|`hadoop.zk.address` | `host:port` | The address for the ZooKeeper ensemble. |
|
|`hadoop.zk.address` | `host:port` | The address for the ZooKeeper ensemble. |
|
||||||
|
|
||||||
SQL: one must setup the following parameters:
|
SQL: one must setup the following parameters:
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
|`yarn.federation.state-store.class` | `org.apache.hadoop.yarn.server.federation.store.impl.SQLFederationStateStore` | The type of state-store to use. |
|
|`yarn.federation.state-store.class` | `org.apache.hadoop.yarn.server.federation.store.impl.SQLFederationStateStore` | The type of state-store to use. |
|
||||||
|`yarn.federation.state-store.sql.url` | `jdbc:mysql://<host>:<port>/FederationStateStore` | For SQLFederationStateStore the name of the DB where the state is stored. |
|
|`yarn.federation.state-store.sql.url` | `jdbc:mysql://<host>:<port>/FederationStateStore` | For SQLFederationStateStore the name of the DB where the state is stored. |
|
||||||
|`yarn.federation.state-store.sql.jdbc-class` | `com.mysql.jdbc.jdbc2.optional.MysqlDataSource` | For SQLFederationStateStore the jdbc class to use. |
|
|`yarn.federation.state-store.sql.jdbc-class` | `com.mysql.jdbc.jdbc2.optional.MysqlDataSource` | For SQLFederationStateStore the jdbc class to use. |
|
||||||
|
@ -212,7 +212,7 @@ SQL-Server scripts are located in **sbin/FederationStateStore/SQLServer/**.
|
||||||
####Optional:
|
####Optional:
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
|`yarn.federation.failover.enabled` | `true` | Whether should retry considering RM failover within each subcluster. |
|
|`yarn.federation.failover.enabled` | `true` | Whether should retry considering RM failover within each subcluster. |
|
||||||
|`yarn.federation.blacklist-subclusters` | `<subcluster-id>` | A list of black-listed sub-clusters, useful to disable a sub-cluster |
|
|`yarn.federation.blacklist-subclusters` | `<subcluster-id>` | A list of black-listed sub-clusters, useful to disable a sub-cluster |
|
||||||
|`yarn.federation.policy-manager` | `org.apache.hadoop.yarn.server.federation.policies.manager.WeightedLocalityPolicyManager` | The choice of policy manager determines how Applications and ResourceRequests are routed through the system. |
|
|`yarn.federation.policy-manager` | `org.apache.hadoop.yarn.server.federation.policies.manager.WeightedLocalityPolicyManager` | The choice of policy manager determines how Applications and ResourceRequests are routed through the system. |
|
||||||
|
@ -225,13 +225,13 @@ SQL-Server scripts are located in **sbin/FederationStateStore/SQLServer/**.
|
||||||
These are extra configurations that should appear in the **conf/yarn-site.xml** at each ResourceManager.
|
These are extra configurations that should appear in the **conf/yarn-site.xml** at each ResourceManager.
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
|`yarn.resourcemanager.epoch` | `<unique-epoch>` | The seed value for the epoch. This is used to guarantee uniqueness of container-IDs generate by different RMs. It must therefore be unique among sub-clusters and `well-spaced` to allow for failures which increment epoch. Increments of 1000 allow for a large number of sub-clusters and practically ensure near-zero chance of collisions (a clash will only happen if a container is still alive for 1000 restarts of one RM, while the next RM never restarted, and an app requests more containers). |
|
|`yarn.resourcemanager.epoch` | `<unique-epoch>` | The seed value for the epoch. This is used to guarantee uniqueness of container-IDs generate by different RMs. It must therefore be unique among sub-clusters and `well-spaced` to allow for failures which increment epoch. Increments of 1000 allow for a large number of sub-clusters and practically ensure near-zero chance of collisions (a clash will only happen if a container is still alive for 1000 restarts of one RM, while the next RM never restarted, and an app requests more containers). |
|
||||||
|
|
||||||
Optional:
|
Optional:
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
|`yarn.federation.state-store.heartbeat-interval-secs` | `60` | The rate at which RMs report their membership to the federation to the central state-store. |
|
|`yarn.federation.state-store.heartbeat-interval-secs` | `60` | The rate at which RMs report their membership to the federation to the central state-store. |
|
||||||
|
|
||||||
|
|
||||||
|
@ -240,14 +240,14 @@ Optional:
|
||||||
These are extra configurations that should appear in the **conf/yarn-site.xml** at each Router.
|
These are extra configurations that should appear in the **conf/yarn-site.xml** at each Router.
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
|`yarn.router.bind-host` | `0.0.0.0` | Host IP to bind the router to. The actual address the server will bind to. If this optional address is set, the RPC and webapp servers will bind to this address and the port specified in yarn.router.*.address respectively. This is most useful for making Router listen to all interfaces by setting to 0.0.0.0. |
|
|`yarn.router.bind-host` | `0.0.0.0` | Host IP to bind the router to. The actual address the server will bind to. If this optional address is set, the RPC and webapp servers will bind to this address and the port specified in yarn.router.*.address respectively. This is most useful for making Router listen to all interfaces by setting to 0.0.0.0. |
|
||||||
| `yarn.router.clientrm.interceptor-class.pipeline` | `org.apache.hadoop.yarn.server.router.clientrm.FederationClientInterceptor` | A comma-separated list of interceptor classes to be run at the router when interfacing with the client. The last step of this pipeline must be the Federation Client Interceptor. |
|
| `yarn.router.clientrm.interceptor-class.pipeline` | `org.apache.hadoop.yarn.server.router.clientrm.FederationClientInterceptor` | A comma-separated list of interceptor classes to be run at the router when interfacing with the client. The last step of this pipeline must be the Federation Client Interceptor. |
|
||||||
|
|
||||||
Optional:
|
Optional:
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
|`yarn.router.hostname` | `0.0.0.0` | Router host name.
|
|`yarn.router.hostname` | `0.0.0.0` | Router host name.
|
||||||
|`yarn.router.clientrm.address` | `0.0.0.0:8050` | Router client address. |
|
|`yarn.router.clientrm.address` | `0.0.0.0:8050` | Router client address. |
|
||||||
|`yarn.router.webapp.address` | `0.0.0.0:8089` | Webapp address at the router. |
|
|`yarn.router.webapp.address` | `0.0.0.0:8089` | Webapp address at the router. |
|
||||||
|
@ -263,7 +263,7 @@ Security:
|
||||||
Kerberos supported in federation.
|
Kerberos supported in federation.
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
| `yarn.router.keytab.file` | | The keytab file used by router to login as its service principal. The principal name is configured with 'yarn.router.kerberos.principal'.|
|
| `yarn.router.keytab.file` | | The keytab file used by router to login as its service principal. The principal name is configured with 'yarn.router.kerberos.principal'.|
|
||||||
| `yarn.router.kerberos.principal` | | The Router service principal. This is typically set to router/_HOST@REALM.TLD. Each Router will substitute _HOST with its own fully qualified hostname at startup. The _HOST placeholder allows using the same configuration setting on all Routers in setup. |
|
| `yarn.router.kerberos.principal` | | The Router service principal. This is typically set to router/_HOST@REALM.TLD. Each Router will substitute _HOST with its own fully qualified hostname at startup. The _HOST placeholder allows using the same configuration setting on all Routers in setup. |
|
||||||
| `yarn.router.kerberos.principal.hostname` | | Optional. The hostname for the Router containing this configuration file. Will be different for each machine. Defaults to current hostname. |
|
| `yarn.router.kerberos.principal.hostname` | | Optional. The hostname for the Router containing this configuration file. Will be different for each machine. Defaults to current hostname. |
|
||||||
|
@ -274,14 +274,14 @@ These are extra configurations that should appear in the **conf/yarn-site.xml**
|
||||||
|
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
| `yarn.nodemanager.amrmproxy.enabled` | `true` | Whether or not the AMRMProxy is enabled. |
|
| `yarn.nodemanager.amrmproxy.enabled` | `true` | Whether or not the AMRMProxy is enabled. |
|
||||||
| `yarn.nodemanager.amrmproxy.interceptor-class.pipeline` | `org.apache.hadoop.yarn.server.nodemanager.amrmproxy.FederationInterceptor` | A comma-separated list of interceptors to be run at the amrmproxy. For federation the last step in the pipeline should be the FederationInterceptor. |
|
| `yarn.nodemanager.amrmproxy.interceptor-class.pipeline` | `org.apache.hadoop.yarn.server.nodemanager.amrmproxy.FederationInterceptor` | A comma-separated list of interceptors to be run at the amrmproxy. For federation the last step in the pipeline should be the FederationInterceptor. |
|
||||||
|
|
||||||
Optional:
|
Optional:
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |:---- |
|
||||||
| `yarn.nodemanager.amrmproxy.ha.enable` | `true` | Whether or not the AMRMProxy HA is enabled for multiple application attempt support. |
|
| `yarn.nodemanager.amrmproxy.ha.enable` | `true` | Whether or not the AMRMProxy HA is enabled for multiple application attempt support. |
|
||||||
| `yarn.federation.statestore.max-connections` | `1` | The maximum number of parallel connections from each AMRMProxy to the state-store. This value is typically lower than the router one, since we have many AMRMProxy that could burn-through many DB connections quickly. |
|
| `yarn.federation.statestore.max-connections` | `1` | The maximum number of parallel connections from each AMRMProxy to the state-store. This value is typically lower than the router one, since we have many AMRMProxy that could burn-through many DB connections quickly. |
|
||||||
| `yarn.federation.cache-ttl.secs` | `300` | The time to leave for the AMRMProxy cache. Typically larger than at the router, as the number of AMRMProxy is large, and we want to limit the load to the centralized state-store. |
|
| `yarn.federation.cache-ttl.secs` | `300` | The time to leave for the AMRMProxy cache. Typically larger than at the router, as the number of AMRMProxy is large, and we want to limit the load to the centralized state-store. |
|
||||||
|
@ -291,7 +291,7 @@ Running a Sample Job
|
||||||
In order to submit jobs to a Federation cluster one must create a separate set of configs for the client from which jobs will be submitted. In these, the **conf/yarn-site.xml** should have the following additional configurations:
|
In order to submit jobs to a Federation cluster one must create a separate set of configs for the client from which jobs will be submitted. In these, the **conf/yarn-site.xml** should have the following additional configurations:
|
||||||
|
|
||||||
| Property | Example | Description |
|
| Property | Example | Description |
|
||||||
|:--- |:--- |
|
|:--- |:--- |:---- |
|
||||||
| `yarn.resourcemanager.address` | `<router_host>:8050` | Redirects jobs launched at the client to the router's client RM port. |
|
| `yarn.resourcemanager.address` | `<router_host>:8050` | Redirects jobs launched at the client to the router's client RM port. |
|
||||||
| `yarn.resourcemanager.scheduler.address` | `localhost:8049` | Redirects jobs to the federation AMRMProxy port.|
|
| `yarn.resourcemanager.scheduler.address` | `localhost:8049` | Redirects jobs to the federation AMRMProxy port.|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue