YARN-8908. Fix errors in yarn-default.xml related to GPU/FPGA. (Zhankun Tang via wangda)

Change-Id: I46f511a9b51b65b069e15d5b827530110c41edab
(cherry picked from commit 071b9e19aa)
This commit is contained in:
Wangda Tan 2018-10-19 09:44:00 -07:00
parent bad5d81ac1
commit c11d2341af
2 changed files with 4 additions and 3 deletions

View File

@ -3634,7 +3634,7 @@
<description> <description>
Enable additional discovery/isolation of resources on the NodeManager, Enable additional discovery/isolation of resources on the NodeManager,
split by comma. By default, this is empty. split by comma. By default, this is empty.
Acceptable values: { "yarn-io/gpu", "yarn-io/fpga"}. Acceptable values: { "yarn.io/gpu", "yarn.io/fpga"}.
</description> </description>
<name>yarn.nodemanager.resource-plugins</name> <name>yarn.nodemanager.resource-plugins</name>
<value></value> <value></value>
@ -3715,9 +3715,10 @@
At present, since we can only configure one major number in c-e.cfg, FPGA device is At present, since we can only configure one major number in c-e.cfg, FPGA device is
identified by their minor device number. A common approach to get minor identified by their minor device number. A common approach to get minor
device number of FPGA is using "aocl diagnose" and check uevent with device name. device number of FPGA is using "aocl diagnose" and check uevent with device name.
A sample manual value for this is like "0,1"
</description> </description>
<name>yarn.nodemanager.resource-plugins.fpga.allowed-fpga-devices</name> <name>yarn.nodemanager.resource-plugins.fpga.allowed-fpga-devices</name>
<value>0,1</value> <value>auto</value>
</property> </property>
<property> <property>

View File

@ -53,7 +53,7 @@ Use following property to configure `DominantResourceCalculator` (In `capacity-s
``` ```
<property> <property>
<name>yarn.nodemanager.resource-plugins</name> <name>yarn.nodemanager.resource-plugins</name>
<value>yarn-io/fpga</value> <value>yarn.io/fpga</value>
</property> </property>
``` ```