You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Tassapol Athiapinya (JIRA)" <ji...@apache.org> on 2014/03/25 18:02:14 UTC

[jira] [Comment Edited] (TEZ-976) WordCount example includes map-reduce argument into input/output dir argument.

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

Tassapol Athiapinya edited comment on TEZ-976 at 3/25/14 5:00 PM:
------------------------------------------------------------------

{quote}
Does wordcount support multiple pairs of inputs/outputs.
{quote}
No, it does not. I retained old code, which was wrong. run method supports only 2 arguments (input path, output path). Correcting this.

{quote}
Also, the conf object created using the -Dparams is completely ignored. That seems wrong. 
{quote}
Thanks for pointing this out. Fixed. conf is now passed into run method.


was (Author: tassapola):
{block}
Does wordcount support multiple pairs of inputs/outputs.
{block}
No, it does not. I retained old code, which was wrong. run method supports only 2 arguments (input path, output path). Correcting this.

{block}
Also, the conf object created using the -Dparams is completely ignored. That seems wrong. 
{block}
Thanks for pointing this out. Fixed. conf is now passed into run method.

> WordCount example includes map-reduce argument into input/output dir argument.
> ------------------------------------------------------------------------------
>
>                 Key: TEZ-976
>                 URL: https://issues.apache.org/jira/browse/TEZ-976
>             Project: Apache Tez
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Tassapol Athiapinya
>            Assignee: Tassapol Athiapinya
>         Attachments: TEZ-976.2.patch, TEZ-976.patch
>
>
> /usr/lib/hadoop/bin/hadoop jar /usr/lib/tez/tez-mapreduce-examples-*.jar wordcount "-Dmapreduce.framework.name=yarn"   /mydir1/RTW /mydir2
> Usage:  wordcount <in1> <out1>
> The reason is its code does not ignore hadoop/MR argument.
> {code}
> public static void main(String[] args) throws Exception {
>     if ((args.length%2) != 0) {
>       printUsage();
>       System.exit(2);
>     }
>     WordCount job = new WordCount();
>     job.run(args[0], args[1], null);
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)