THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Edit the $YARN_HOME/etc/hadoop/myriad-config-default.yml file.
- Edit the $YARN_HOME/etc/hadoop/yarn-site.xml file.
Modify myriad-config-default.yml
...
Modify the $YARN_HOME/etc/hadoop/myriad-config-default.yml file by adding the following content:
Code Block |
---|
... nodemanager: cgroups: true ... |
Modify yarn-site.xml
Modify the $YARN_HOME/etc/hadoop/yarn-site.xml file by adding the following content:
Code Block |
---|
<property> <description>who will execute(launch) the containers.</description> <name>yarn.nodemanager.container-executor.class</name> <value>${yarn.nodemanager.container-executor.class}</value> </property> <property> <description>The class which should help the LCE handle resources.</description> <name>yarn.nodemanager.linux-container-executor.resources-handler.class</name> <value>${yarn.nodemanager.linux-container-executor.resources-handler.class}</value> </property> <property> <name>yarn.nodemanager.linux-container-executor.cgroups.hierarchy</name> <value>${yarn.nodemanager.linux-container-executor.cgroups.hierarchy}</value> </property> <property> <name>yarn.nodemanager.linux-container-executor.cgroups.mount</name> <value>${yarn.nodemanager.linux-container-executor.cgroups.mount}</value> </property> <property> <name>yarn.nodemanager.linux-container-executor.cgroups.mount-path</name> <value>${yarn.nodemanager.linux-container-executor.cgroups.mount-path}</value> </property> <property> <name>yarn.nodemanager.linux-container-executor.group</name> <value>${yarn.nodemanager.linux-container-executor.group}</value> </property> <property> <name>yarn.nodemanager.linux-container-executor.path</name> <value>${yarn.home}/bin/container-executor</value> </property> |
Modify myriad-config-default.yml
Modify the $YARN_HOME/etc/hadoop/myriad-config-default.yml file by adding the following content:
...
Note |
---|
At this time, YARN's Node Manager only works with the CPU subsystem. |
...