You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2015/06/06 22:04:01 UTC
[jira] [Updated] (MAPREDUCE-6389) Fix BaileyBorweinPlouffe CLI
usage message
[ https://issues.apache.org/jira/browse/MAPREDUCE-6389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brahma Reddy Battula updated MAPREDUCE-6389:
--------------------------------------------
Attachment: MAPREDUCE-6389.patch
Attaching the patch to fix..Kindly review
> Fix BaileyBorweinPlouffe CLI usage message
> -------------------------------------------
>
> Key: MAPREDUCE-6389
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6389
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Reporter: Brahma Reddy Battula
> Assignee: Brahma Reddy Battula
> Attachments: MAPREDUCE-6389.patch
>
>
> The usage message from code does not match with the command helpline option.
> *usage from command line*
> {noformat}
> hduser@canberra:~/work/software/cloudera/hadoop-2.0.0-cdh4.0.0$ hadoop jar src/hadoop-mapreduce-project/hadoop-mapreduce-examples/target/hadoop-mapreduce-examples-2.0.0-cdh4.0.0.jar
> An example program must be given as the first argument.
> Valid program names are:
> aggregatewordcount: An Aggregate based map/reduce program that counts the words in the input files.
> aggregatewordhist: An Aggregate based map/reduce program that computes the histogram of the words in the input files.
> bbp: A map/reduce program that uses Bailey-Borwein-Plouffe to compute exact digits of Pi.
> dbcount: An example job that count the pageview counts from a database.
> distbbp: A map/reduce program that uses a BBP-type formula to compute exact bits of Pi.
> grep: A map/reduce program that counts the matches of a regex in the input.
> {noformat}
> *usage from code*
> {code}
> public int run(String[] args) throws IOException {
> if (args.length != 4) {
> System.err.println("Usage: java " + getClass().getName()
> + " <startDigit> <nDigits> <nMaps> <workingDir>");
> ToolRunner.printGenericCommandUsage(System.err);
> return -1;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)