You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/Federation.md
+264Lines changed: 264 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -385,3 +385,267 @@ The output from this particular example job should be something like:
385
385
386
386
The state of the job can also be tracked on the Router Web UI at `routerhost:8089`.
387
387
Note that no change in the code or recompilation of the input jar was required to use federation. Also, the output of this job is the exact same as it would be when run without federation. Also, in order to get the full benefit of federation, use a large enough number of mappers such that more than one cluster is required. That number happens to be 16 in the case of the above example.
388
+
389
+
How to build a Test Federation Cluster
390
+
--------------------
391
+
392
+
The purpose of this document is to help users quickly set up a testing environment for YARN Federation. With this testing environment, users can utilize the core functionality of YARN Federation. This is the simplest test cluster setup (based on Linux) with only essential configurations (YARN non-HA mode). We require 3 machines, and each machine should have at least <4C, 8GB> of resources. We only cover YARN configuration in this document. For information on configuring HDFS and ZooKeeper, please refer to other documentation sources.
393
+
394
+
Test Environment Description:
395
+
- We need to build a HDFS test environment, this part can refer to HDFS documentation. [HDFS SingleCluster](../../hadoop-project-dist/hadoop-common/SingleCluster.html)
396
+
- We need two YARN clusters, each YARN cluster has one RM and one NM, The RM and NM on the same node.
397
+
- We need one ZK cluster(We only need one ZooKeeper node.), this part can refer to Zookeeper documentation. [ZookeeperStarted](https://zookeeper.apache.org/doc/current/zookeeperStarted.html)
398
+
- We need one Router and one Client.
399
+
400
+
Example of Machine-Role Mapping(Exclude HDFS):
401
+
402
+
| Machine | Role |
403
+
|:----------|:--------------|
404
+
| Machine A | RM1\NM1\ZK1 |
405
+
| Machine B | RM2\NM2 |
406
+
| Machine C | Router\Client |
407
+
408
+
### YARN-1(ClusterTest-Yarn1)
409
+
410
+
#### RM-1
411
+
412
+
- For the ResourceManager, we need to configure the following option:
413
+
414
+
```xml
415
+
416
+
<!-- YARN cluster-id -->
417
+
<property>
418
+
<name>yarn.resourcemanager.cluster-id</name>
419
+
<value>ClusterTest-Yarn1</value>
420
+
</property>
421
+
422
+
<!--
423
+
We can choose to use FairScheduler or CapacityScheduler. Different schedulers have different configuration.
0 commit comments