[ 
https://issues.apache.org/jira/browse/MAPREDUCE-6038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14536161#comment-14536161
 ] 

Hadoop QA commented on MAPREDUCE-6038:
--------------------------------------

\\
\\
| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | pre-patch |   2m 50s | Pre-patch trunk compilation is 
healthy. |
| {color:green}+1{color} | @author |   0m  0s | The patch does not contain any 
@author tags. |
| {color:green}+1{color} | release audit |   0m 21s | The applied patch does 
not increase the total number of release audit warnings. |
| {color:green}+1{color} | site |   2m 54s | Site still builds. |
| {color:green}+1{color} | whitespace |   0m  0s | The patch has no lines that 
end in whitespace. |
| | |   6m  8s | |
\\
\\
|| Subsystem || Report/Notes ||
| Patch URL | 
http://issues.apache.org/jira/secure/attachment/12731662/MAPREDUCE-6038.2.patch 
|
| Optional Tests | site |
| git revision | trunk / 6471d18 |
| Java | 1.7.0_55 |
| uname | Linux asf909.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP 
PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux |
| Console output | 
https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/5688/console |


This message was automatically generated.

> A boolean may be set error in the Word Count v2.0 in MapReduce Tutorial
> -----------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6038
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6038
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>         Environment: java version 1.8.0_11 hostspot 64-bit
>            Reporter: Pei Ma
>            Assignee: Tsuyoshi Ozawa
>            Priority: Minor
>              Labels: BB2015-05-TBR
>         Attachments: MAPREDUCE-6038.1.patch, MAPREDUCE-6038.2.patch
>
>
> As a beginner, when I learned about the basic of the mr, I found that I 
> cound't run the WordCount2 using the command "bin/hadoop jar wc.jar 
> WordCount2 /user/joe/wordcount/input /user/joe/wordcount/output" in the 
> Tutorial. The VM throwed the NullPoniterException at the line 47. In the line 
> 45, the returned default value of "conf.getBoolean" is true. That is to say  
> when "wordcount.skip.patterns" is not set ,the WordCount2 will continue to 
> execute getCacheFiles.. Then patternsURIs gets the null value. When the 
> "-skip" option dosen't exist,  "wordcount.skip.patterns" will not be set. 
> Then a NullPointerException come out.
> At all, the block after the if-statement in line no. 45 shoudn't be executed 
> when the "-skip" option dosen't exist in command. Maybe the line 45 should 
> like that  "if (conf.getBoolean("wordcount.skip.patterns", false)) { "
> .Just change the boolean.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to