The Resource Manager can be launched or stopped from either the command line or the Marathon UI.
Launching from the Command Line
To start the Resource Manager, run the YARN daemon from the command line:
yarn-daemon.sh start resourcemanager
To shut down he Resource Manager, run the YARN daemon from the command line:
yarn-daemon.sh stop resourcemanager
Launching from Marathon
Alternatively, start and stop Myriad from the Marathon UI. See Marathon: Application Basics for more information. For example, create an application to start the Resource Manager:
cd hadoop-2.7.1/sbin && yarn-daemon.sh start resourcemanager
Alternatively, when launching the Resource Manager in an HA environment, specify the yarn.resourcemanager.hostname
property. The hostname is the ID field specified when launching a Marathon application.
env && export YARN_RESOURCEMANAGER_OPTS=-Dyarn.resourcemanager.hostname=rmapp.marathon.mesos && yarn resourcemanager
Some applications might require the yarn.resourcemanager.hostname
property to be specified explicitly as a command line option.