The Myriad environment is established by running an initial application for the resource manager. This initial application name is specified in the yarn-site.xml file with the the yarn.resourcemanager.hostname
property and the value, <app-ID>.<framework>.mesos
.
For example, if the value of yarn.resourcemanager.hostname property is rm.marathon.mesos:
rm - The ID given to the Resource Manager when launched using Marathon. Mesos-DNS constructs the Resource Manager hostname using the ID.
marathon - The Mesos framework.
If you are using Marathon, launch Marathon and run an initial Resource Manager application. The Resource Manager can be launched or stopped from either the command line or the Marathon UI.
Table of Contents |
---|
Launching from the Command Line
...
Code Block |
---|
cd hadoop-2.7.10/sbin && yarn-daemon.sh start resourcemanager |
...
Alternatively, when launching the Resource Manager in an HA environment, specify value for the yarn.resourcemanager.hostname
property. The hostname is the ID field specified when launching a Marathon application.
To Start initially launch the Resource Manager from Marathon:
...
For example
Parameter | Example Value | Description |
---|---|---|
ID | rm | The ID for the Resource Manager when launched using Marathon. Mesos-DNS constructs the Resource Manager hostname using the ID. |
CPU | 0.2 | Amount of CPU allocated. |
Memory | 2048 | Amount of memory allocated |
Instances | 1 | Number of instances to be launched. |
Command | env && && yarn resourcemanager |
Command to launch the resource manager. |
Note |
---|
If the yarn.resourcemanager.hostname property is not specified in the yarn-site.xml file, then the -DYARN_RESOURCEMANAGER_OPTS option must be specified. When the |
For example
Code Block |
---|
env && export YARN_RESOURCEMANAGER_OPTS=-Dyarn.resourcemanager.hostname=rm.marathon.mesos && yarn resourcemanager |
...