hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-6038) A boolean may be set error in the Word Count v2.0 in MapReduce Tutorial
Date Thu, 28 Aug 2014 21:49:10 GMT

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

Hadoop QA commented on MAPREDUCE-6038:

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  against trunk revision c4c9a78.

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:green}+1 javadoc{color}.  There were no new javadoc warning messages.

    {color:green}+1 eclipse:eclipse{color}.  The patch built with eclipse:eclipse.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new Findbugs (version
2.0.3) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number
of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core.

    {color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/4833//testReport/
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/4833//console

This message is 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
>         Attachments: MAPREDUCE-6038.1.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

View raw message