Skip to content

Commit 5503f95

Browse files
committed
YARN-1229. Define constraints on Auxiliary Service names. Change ShuffleHandler service name from mapreduce.shuffle to mapreduce_shuffle. Contributed by Xuan Gong.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1526065 13f79535-47bb-0310-9956-ffa450edef68
1 parent 81d0e8e commit 5503f95

File tree

12 files changed

+113
-11
lines changed

12 files changed

+113
-11
lines changed

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,18 @@ Release 2.2.0 - UNRELEASED
384384

385385
BUG FIXES
386386

387+
Release 2.1.2 - UNRELEASED
388+
389+
INCOMPATIBLE CHANGES
390+
391+
NEW FEATURES
392+
393+
IMPROVEMENTS
394+
395+
OPTIMIZATIONS
396+
397+
BUG FIXES
398+
387399
Release 2.1.1-beta - 2013-09-23
388400

389401
INCOMPATIBLE CHANGES

hadoop-common-project/hadoop-common/src/site/apt/ClusterSetup.apt.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Hadoop MapReduce Next Generation - Cluster Setup
311311
| | | Only applicable if log-aggregation is enabled. |
312312
*-------------------------+-------------------------+------------------------+
313313
| <<<yarn.nodemanager.aux-services>>> | | |
314-
| | mapreduce.shuffle | |
314+
| | mapreduce_shuffle | |
315315
| | | Shuffle service that needs to be set for Map Reduce applications. |
316316
*-------------------------+-------------------------+------------------------+
317317

hadoop-common-project/hadoop-common/src/site/apt/SingleCluster.apt.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Add the following configs to your <<<yarn-site.xml>>>
140140

141141
<property>
142142
<name>yarn.nodemanager.aux-services</name>
143-
<value>mapreduce.shuffle</value>
143+
<value>mapreduce_shuffle</value>
144144
<description>shuffle service that needs to be set for Map Reduce to run </description>
145145
</property>
146146
+---+

hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,18 @@ Release 2.2.0 - UNRELEASED
323323

324324
OPTIMIZATIONS
325325

326+
BUG FIXES
327+
328+
Release 2.1.2 - UNRELEASED
329+
330+
INCOMPATIBLE CHANGES
331+
332+
NEW FEATURES
333+
334+
IMPROVEMENTS
335+
336+
OPTIMIZATIONS
337+
326338
BUG FIXES
327339

328340
HDFS-5139. Remove redundant -R option from setrep.

hadoop-mapreduce-project/CHANGES.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,18 @@ Release 2.2.0 - UNRELEASED
191191

192192
OPTIMIZATIONS
193193

194+
BUG FIXES
195+
196+
Release 2.1.2 - UNRELEASED
197+
198+
INCOMPATIBLE CHANGES
199+
200+
NEW FEATURES
201+
202+
IMPROVEMENTS
203+
204+
OPTIMIZATIONS
205+
194206
BUG FIXES
195207

196208
MAPREDUCE-5504. mapred queue -info inconsistent with types (Kousuke Saruta

hadoop-mapreduce-project/INSTALL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export YARN_CONF_DIR=$HADOOP_CONF_DIR
3939
Step 7) Setup config: for running mapreduce applications, which now are in user land, you need to setup nodemanager with the following configuration in your yarn-site.xml before you start the nodemanager.
4040
<property>
4141
<name>yarn.nodemanager.aux-services</name>
42-
<value>mapreduce.shuffle</value>
42+
<value>mapreduce_shuffle</value>
4343
</property>
4444

4545
<property>
46-
<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
46+
<name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name>
4747
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
4848
</property>
4949

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/PluggableShuffleAndPluggableSort.apt.vm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ Hadoop MapReduce Next Generation - Pluggable Shuffle and Pluggable Sort
8383
*--------------------------------------+---------------------+-----------------+
8484
| <<Property>> | <<Default Value>> | <<Explanation>> |
8585
*--------------------------------------+---------------------+-----------------+
86-
| <<<yarn.nodemanager.aux-services>>> | <<<...,mapreduce.shuffle>>> | The auxiliary service name |
86+
| <<<yarn.nodemanager.aux-services>>> | <<<...,mapreduce_shuffle>>> | The auxiliary service name |
8787
*--------------------------------------+---------------------+-----------------+
88-
| <<<yarn.nodemanager.aux-services.mapreduce.shuffle.class>>> | <<<org.apache.hadoop.mapred.ShuffleHandler>>> | The auxiliary service class to use |
88+
| <<<yarn.nodemanager.aux-services.mapreduce_shuffle.class>>> | <<<org.apache.hadoop.mapred.ShuffleHandler>>> | The auxiliary service class to use |
8989
*--------------------------------------+---------------------+-----------------+
9090

9191
<<IMPORTANT:>> If setting an auxiliary service in addition the default
92-
<<<mapreduce.shuffle>>> service, then a new service key should be added to the
92+
<<<mapreduce_shuffle>>> service, then a new service key should be added to the
9393
<<<yarn.nodemanager.aux-services>>> property, for example <<<mapred.shufflex>>>.
9494
Then the property defining the corresponding class must be
95-
<<<yarn.nodemanager.aux-services.mapreduce.shufflex.class>>>.
95+
<<<yarn.nodemanager.aux-services.mapreduce_shufflex.class>>>.
9696

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/main/java/org/apache/hadoop/mapred/ShuffleHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public class ShuffleHandler extends AuxiliaryService {
146146
private ReadaheadPool readaheadPool = ReadaheadPool.getInstance();
147147

148148
public static final String MAPREDUCE_SHUFFLE_SERVICEID =
149-
"mapreduce.shuffle";
149+
"mapreduce_shuffle";
150150

151151
private static final Map<String,String> userRsrc =
152152
new ConcurrentHashMap<String,String>();

hadoop-yarn-project/CHANGES.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ Release 2.2.0 - UNRELEASED
5656

5757
OPTIMIZATIONS
5858

59+
BUG FIXES
60+
61+
Release 2.1.2 - UNRELEASED
62+
63+
INCOMPATIBLE CHANGES
64+
65+
YARN-1229. Define constraints on Auxiliary Service names. Change
66+
ShuffleHandler service name from mapreduce.shuffle to
67+
mapreduce_shuffle (Xuan Gong via sseth)
68+
69+
NEW FEATURES
70+
71+
IMPROVEMENTS
72+
73+
OPTIMIZATIONS
74+
5975
BUG FIXES
6076

6177
YARN-1128. FifoPolicy.computeShares throws NPE on empty list of Schedulables

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,10 @@
705705
</property>
706706

707707
<property>
708+
<description>the valid service name should only contain a-zA-Z0-9_ and can not start with numbers</description>
708709
<name>yarn.nodemanager.aux-services</name>
709710
<value></value>
710-
<!-- <value>mapreduce.shuffle</value> -->
711+
<!--<value>mapreduce_shuffle</value>-->
711712
</property>
712713

713714
<property>
@@ -763,7 +764,7 @@
763764

764765
<!--Map Reduce configuration-->
765766
<property>
766-
<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
767+
<name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name>
767768
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
768769
</property>
769770

0 commit comments

Comments
 (0)