|
@@ -63,6 +63,9 @@ The collector class configuration may specify a comma-separated list of collecto
|
|
|
|
|
|
### NodeManager Configuration properties, `yarn-site.xml` in all nodes:
|
|
### NodeManager Configuration properties, `yarn-site.xml` in all nodes:
|
|
|
|
|
|
|
|
+There are two ways to configure auxiliary services, through a manifest file or through the Configuration (the old way). If a manifest file is used, auxiliary service configurations are not read from the Configuration.
|
|
|
|
+If using a manifest file, the file name should be set in *yarn-site.xml* under the property `yarn.nodemanager.aux-services.manifest`. The NMs will check this file for new modifications at an interval specified by `yarn.nodemanager.aux-services.manifest.reload-ms`. Otherwise, set the following properties to configure aux services through the Configuration.
|
|
|
|
+
|
|
| **Property** | **Default Value** | **Explanation** |
|
|
| **Property** | **Default Value** | **Explanation** |
|
|
|:---- |:---- |:---- |
|
|
|:---- |:---- |:---- |
|
|
| `yarn.nodemanager.aux-services` | `...,mapreduce_shuffle` | The auxiliary service name |
|
|
| `yarn.nodemanager.aux-services` | `...,mapreduce_shuffle` | The auxiliary service name |
|
|
@@ -72,6 +75,39 @@ The collector class configuration may specify a comma-separated list of collecto
|
|
|
|
|
|
#### Example of loading jar file from HDFS:
|
|
#### Example of loading jar file from HDFS:
|
|
|
|
|
|
|
|
+Using manifest:
|
|
|
|
+```
|
|
|
|
+{
|
|
|
|
+ "services": [
|
|
|
|
+ {
|
|
|
|
+ "name": "mapreduce_shuffle",
|
|
|
|
+ "version": "1",
|
|
|
|
+ "configuration": {
|
|
|
|
+ "properties": {
|
|
|
|
+ "class.name": "org.apache.hadoop.mapred.ShuffleHandler"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "name": "AuxServiceFromHDFS",
|
|
|
|
+ "version": "1",
|
|
|
|
+ "configuration": {
|
|
|
|
+ "properties": {
|
|
|
|
+ "class.name": "org.apache.auxtest.AuxServiceFromHDFS2"
|
|
|
|
+ },
|
|
|
|
+ "files": [
|
|
|
|
+ {
|
|
|
|
+ "src_file": "hdfs:///aux/test/aux-service-hdfs.jar",
|
|
|
|
+ "type": "STATIC"
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+Or using Configuration:
|
|
```xml
|
|
```xml
|
|
<configuration>
|
|
<configuration>
|
|
<property>
|
|
<property>
|
|
@@ -93,6 +129,39 @@ The collector class configuration may specify a comma-separated list of collecto
|
|
|
|
|
|
#### Example of loading jar file from local file system:
|
|
#### Example of loading jar file from local file system:
|
|
|
|
|
|
|
|
+Using manifest:
|
|
|
|
+```
|
|
|
|
+{
|
|
|
|
+ "services": [
|
|
|
|
+ {
|
|
|
|
+ "name": "mapreduce_shuffle",
|
|
|
|
+ "version": "1",
|
|
|
|
+ "configuration": {
|
|
|
|
+ "properties": {
|
|
|
|
+ "class.name": "org.apache.hadoop.mapred.ShuffleHandler"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "name": "AuxServiceFromHDFS",
|
|
|
|
+ "version": "1",
|
|
|
|
+ "configuration": {
|
|
|
|
+ "properties": {
|
|
|
|
+ "class.name": "org.apache.auxtest.AuxServiceFromHDFS2"
|
|
|
|
+ },
|
|
|
|
+ "files": [
|
|
|
|
+ {
|
|
|
|
+ "src_file": "file:///aux/test/aux-service-hdfs.jar",
|
|
|
|
+ "type": "STATIC"
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+Or using Configuration:
|
|
```xml
|
|
```xml
|
|
<configuration>
|
|
<configuration>
|
|
<property>
|
|
<property>
|
|
@@ -117,3 +186,5 @@ The collector class configuration may specify a comma-separated list of collecto
|
|
`yarn.nodemanager.aux-services` property, for example `mapred.shufflex`.
|
|
`yarn.nodemanager.aux-services` property, for example `mapred.shufflex`.
|
|
Then the property defining the corresponding class must be
|
|
Then the property defining the corresponding class must be
|
|
`yarn.nodemanager.aux-services.mapreduce_shufflex.class`.
|
|
`yarn.nodemanager.aux-services.mapreduce_shufflex.class`.
|
|
|
|
+Alternatively, if an aux services manifest file is used, the service
|
|
|
|
+should be added to the service list.
|