You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/06/24 13:59:16 UTC

[jira] [Commented] (HADOOP-13320) Fix arguments check in the WordCount v2.0 in the MapReduce Doc

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

ASF GitHub Bot commented on HADOOP-13320:
-----------------------------------------

GitHub user pippobaudos opened a pull request:

    https://github.com/apache/hadoop/pull/105

    HADOOP-13320. Fix arguments check in the WordCount v2.0 in Doc. Contr…

    https://issues.apache.org/jira/browse/HADOOP-13320
    
    Fixed the check on the number of parameters.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pippobaudos/hadoop feature/hadoop-13320

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hadoop/pull/105.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #105
    
----
commit 469bc02c6f932bc55fced96de33884cebbe92242
Author: Niccolo Becchi <ni...@bigdatapartnership.com>
Date:   2016-06-24T13:50:24Z

    HADOOP-13320. Fix arguments check in the WordCount v2.0 in Doc. Contributed by Niccolo Becchi

----


> Fix arguments check in the WordCount v2.0 in the MapReduce Doc
> --------------------------------------------------------------
>
>                 Key: HADOOP-13320
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13320
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: documentation
>            Reporter: niccolo becchi
>            Priority: Trivial
>
> The actual arguments check is wrong, as it's never printing the message of the correct usage. So, running the code with a wrong number of parameters we get the exception:
> yarn jar /var/tmp/WordCount.jar task0.WordCount2
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>     at java.util.ArrayList.rangeCheck(ArrayList.java:635)
>     at java.util.ArrayList.get(ArrayList.java:411)
>     at task0.WordCount2.main(WordCount2.java:131)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>     at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Intead than the expected message
>  Usage: wordcount <in> <out> [-skip skipPatternFile]



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org