MAPREDUCE-6038. A boolean may be set error in the Word Count v2.0 in MapReduce Tutorial. Contributed by Tsuyoshi Ozawa

This commit is contained in:
Chris Douglas 2015-07-07 10:26:27 -07:00
parent bc99aaffe7
commit 7e2fe8c9f2
2 changed files with 4 additions and 1 deletions

View File

@ -530,6 +530,9 @@ Release 2.8.0 - UNRELEASED
MAPREDUCE-6418. MRApp should not shutdown LogManager during shutdown
(Chang Li via jlowe)
MAPREDUCE-6038. A boolean may be set error in the Word Count v2.0 in
MapReduce Tutorial. (Tsuyoshi Ozawa via cdouglas)
Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -978,7 +978,7 @@ public class WordCount2 {
InterruptedException {
conf = context.getConfiguration();
caseSensitive = conf.getBoolean("wordcount.case.sensitive", true);
if (conf.getBoolean("wordcount.skip.patterns", true)) {
if (conf.getBoolean("wordcount.skip.patterns", false)) {
URI[] patternsURIs = Job.getInstance(conf).getCacheFiles();
for (URI patternsURI : patternsURIs) {
Path patternsPath = new Path(patternsURI.getPath());