FAQ
Examples -Driver does not check first argument.
-----------------------------------------------

Key: HADOOP-4608
URL: https://issues.apache.org/jira/browse/HADOOP-4608
Project: Hadoop Core
Issue Type: Bug
Components: examples
Affects Versions: 0.18.2
Reporter: Edward J. Yoon
Assignee: Edward J. Yoon
Fix For: 0.18.3


hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
grep: A map/reduce program that counts the matches of a regex in the input.
join: A job that effects a join over sorted, equally partitioned datasets
multifilewc: A job that counts words from several files.
pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
pi: A map/reduce program that estimates Pi using monte-carlo method.
randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
randomwriter: A map/reduce program that writes 10GB of random data per node.
sleep: A job that sleeps at each map and reduce task.
sort: A map/reduce program that sorts the data written by the random writer.
sudoku: A sudoku solver.
wordcount: A map/reduce program that counts the words in the input files.
java.lang.IllegalArgumentException: An example program must be given as the first argument.
at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Edward J. Yoon (JIRA) at Nov 7, 2008 at 1:27 am
    [ https://issues.apache.org/jira/browse/HADOOP-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward J. Yoon reassigned HADOOP-4608:
    --------------------------------------

    Assignee: (was: Edward J. Yoon)
    Examples -Driver does not check first argument.
    -----------------------------------------------

    Key: HADOOP-4608
    URL: https://issues.apache.org/jira/browse/HADOOP-4608
    Project: Hadoop Core
    Issue Type: Bug
    Components: examples
    Affects Versions: 0.18.2
    Reporter: Edward J. Yoon
    Fix For: 0.18.3


    hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
    grep: A map/reduce program that counts the matches of a regex in the input.
    join: A job that effects a join over sorted, equally partitioned datasets
    multifilewc: A job that counts words from several files.
    pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
    pi: A map/reduce program that estimates Pi using monte-carlo method.
    randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
    randomwriter: A map/reduce program that writes 10GB of random data per node.
    sleep: A job that sleeps at each map and reduce task.
    sort: A map/reduce program that sorts the data written by the random writer.
    sudoku: A sudoku solver.
    wordcount: A map/reduce program that counts the words in the input files.
    java.lang.IllegalArgumentException: An example program must be given as the first argument.
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
    at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward J. Yoon (JIRA) at Nov 10, 2008 at 2:11 am
    [ https://issues.apache.org/jira/browse/HADOOP-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward J. Yoon reassigned HADOOP-4608:
    --------------------------------------

    Assignee: Edward J. Yoon
    Examples -Driver does not check first argument.
    -----------------------------------------------

    Key: HADOOP-4608
    URL: https://issues.apache.org/jira/browse/HADOOP-4608
    Project: Hadoop Core
    Issue Type: Bug
    Components: examples
    Affects Versions: 0.18.2
    Reporter: Edward J. Yoon
    Assignee: Edward J. Yoon
    Fix For: 0.18.3

    Attachments: HADOOP-4608.patch


    hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
    grep: A map/reduce program that counts the matches of a regex in the input.
    join: A job that effects a join over sorted, equally partitioned datasets
    multifilewc: A job that counts words from several files.
    pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
    pi: A map/reduce program that estimates Pi using monte-carlo method.
    randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
    randomwriter: A map/reduce program that writes 10GB of random data per node.
    sleep: A job that sleeps at each map and reduce task.
    sort: A map/reduce program that sorts the data written by the random writer.
    sudoku: A sudoku solver.
    wordcount: A map/reduce program that counts the words in the input files.
    java.lang.IllegalArgumentException: An example program must be given as the first argument.
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
    at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward J. Yoon (JIRA) at Nov 10, 2008 at 2:11 am
    [ https://issues.apache.org/jira/browse/HADOOP-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward J. Yoon updated HADOOP-4608:
    -----------------------------------

    Attachment: HADOOP-4608.patch

    IMO, In this case the exit is enough.
    Examples -Driver does not check first argument.
    -----------------------------------------------

    Key: HADOOP-4608
    URL: https://issues.apache.org/jira/browse/HADOOP-4608
    Project: Hadoop Core
    Issue Type: Bug
    Components: examples
    Affects Versions: 0.18.2
    Reporter: Edward J. Yoon
    Fix For: 0.18.3

    Attachments: HADOOP-4608.patch


    hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
    grep: A map/reduce program that counts the matches of a regex in the input.
    join: A job that effects a join over sorted, equally partitioned datasets
    multifilewc: A job that counts words from several files.
    pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
    pi: A map/reduce program that estimates Pi using monte-carlo method.
    randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
    randomwriter: A map/reduce program that writes 10GB of random data per node.
    sleep: A job that sleeps at each map and reduce task.
    sort: A map/reduce program that sorts the data written by the random writer.
    sudoku: A sudoku solver.
    wordcount: A map/reduce program that counts the words in the input files.
    java.lang.IllegalArgumentException: An example program must be given as the first argument.
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
    at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward J. Yoon (JIRA) at Nov 10, 2008 at 2:13 am
    [ https://issues.apache.org/jira/browse/HADOOP-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward J. Yoon updated HADOOP-4608:
    -----------------------------------

    Fix Version/s: 0.20.0
    0.19.1

    Current trunk also affected.
    Examples -Driver does not check first argument.
    -----------------------------------------------

    Key: HADOOP-4608
    URL: https://issues.apache.org/jira/browse/HADOOP-4608
    Project: Hadoop Core
    Issue Type: Bug
    Components: examples
    Affects Versions: 0.18.2
    Reporter: Edward J. Yoon
    Assignee: Edward J. Yoon
    Fix For: 0.18.3, 0.19.1, 0.20.0

    Attachments: HADOOP-4608.patch


    hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
    grep: A map/reduce program that counts the matches of a regex in the input.
    join: A job that effects a join over sorted, equally partitioned datasets
    multifilewc: A job that counts words from several files.
    pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
    pi: A map/reduce program that estimates Pi using monte-carlo method.
    randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
    randomwriter: A map/reduce program that writes 10GB of random data per node.
    sleep: A job that sleeps at each map and reduce task.
    sort: A map/reduce program that sorts the data written by the random writer.
    sudoku: A sudoku solver.
    wordcount: A map/reduce program that counts the words in the input files.
    java.lang.IllegalArgumentException: An example program must be given as the first argument.
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
    at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward J. Yoon (JIRA) at Nov 10, 2008 at 2:13 am
    [ https://issues.apache.org/jira/browse/HADOOP-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Edward J. Yoon updated HADOOP-4608:
    -----------------------------------

    Status: Patch Available (was: Open)

    Submit my patch. Can anyone review my code? Thanks in advance.
    Examples -Driver does not check first argument.
    -----------------------------------------------

    Key: HADOOP-4608
    URL: https://issues.apache.org/jira/browse/HADOOP-4608
    Project: Hadoop Core
    Issue Type: Bug
    Components: examples
    Affects Versions: 0.18.2
    Reporter: Edward J. Yoon
    Assignee: Edward J. Yoon
    Fix For: 0.18.3, 0.19.1, 0.20.0

    Attachments: HADOOP-4608.patch


    hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
    grep: A map/reduce program that counts the matches of a regex in the input.
    join: A job that effects a join over sorted, equally partitioned datasets
    multifilewc: A job that counts words from several files.
    pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
    pi: A map/reduce program that estimates Pi using monte-carlo method.
    randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
    randomwriter: A map/reduce program that writes 10GB of random data per node.
    sleep: A job that sleeps at each map and reduce task.
    sort: A map/reduce program that sorts the data written by the random writer.
    sudoku: A sudoku solver.
    wordcount: A map/reduce program that counts the words in the input files.
    java.lang.IllegalArgumentException: An example program must be given as the first argument.
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
    at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Hadoop QA (JIRA) at Nov 10, 2008 at 7:47 am
    [ https://issues.apache.org/jira/browse/HADOOP-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646189#action_12646189 ]

    Hadoop QA commented on HADOOP-4608:
    -----------------------------------

    -1 overall. Here are the results of testing the latest attachment
    http://issues.apache.org/jira/secure/attachment/12393602/HADOOP-4608.patch
    against trunk revision 712344.

    +1 @author. The patch does not contain any @author tags.

    -1 tests included. The patch doesn't appear to include any new or modified tests.
    Please justify why no tests are needed for this patch.

    -1 javadoc. The javadoc tool appears to have generated 1 warning messages.

    +1 javac. The applied patch does not increase the total number of javac compiler warnings.

    -1 findbugs. The patch appears to introduce 1 new Findbugs warnings.

    +1 Eclipse classpath. The patch retains Eclipse classpath integrity.

    +1 core tests. The patch passed core unit tests.

    +1 contrib tests. The patch passed contrib unit tests.

    Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3566/testReport/
    Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3566/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
    Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3566/artifact/trunk/build/test/checkstyle-errors.html
    Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3566/console

    This message is automatically generated.
    Examples -Driver does not check first argument.
    -----------------------------------------------

    Key: HADOOP-4608
    URL: https://issues.apache.org/jira/browse/HADOOP-4608
    Project: Hadoop Core
    Issue Type: Bug
    Components: examples
    Affects Versions: 0.18.2
    Reporter: Edward J. Yoon
    Assignee: Edward J. Yoon
    Fix For: 0.18.3, 0.19.1, 0.20.0

    Attachments: HADOOP-4608.patch


    hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
    grep: A map/reduce program that counts the matches of a regex in the input.
    join: A job that effects a join over sorted, equally partitioned datasets
    multifilewc: A job that counts words from several files.
    pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
    pi: A map/reduce program that estimates Pi using monte-carlo method.
    randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
    randomwriter: A map/reduce program that writes 10GB of random data per node.
    sleep: A job that sleeps at each map and reduce task.
    sort: A map/reduce program that sorts the data written by the random writer.
    sudoku: A sudoku solver.
    wordcount: A map/reduce program that counts the words in the input files.
    java.lang.IllegalArgumentException: An example program must be given as the first argument.
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
    at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Owen O'Malley (JIRA) at Nov 13, 2008 at 10:41 pm
    [ https://issues.apache.org/jira/browse/HADOOP-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Owen O'Malley updated HADOOP-4608:
    ----------------------------------

    Resolution: Fixed
    Fix Version/s: (was: 0.18.3)
    (was: 0.19.1)
    Hadoop Flags: [Reviewed]
    Status: Resolved (was: Patch Available)

    I just committed this. Thanks, Edward!

    This isn't a blocker, so only applying to trunk.
    Examples -Driver does not check first argument.
    -----------------------------------------------

    Key: HADOOP-4608
    URL: https://issues.apache.org/jira/browse/HADOOP-4608
    Project: Hadoop Core
    Issue Type: Bug
    Components: examples
    Affects Versions: 0.18.2
    Reporter: Edward J. Yoon
    Assignee: Edward J. Yoon
    Fix For: 0.20.0

    Attachments: HADOOP-4608.patch


    hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
    grep: A map/reduce program that counts the matches of a regex in the input.
    join: A job that effects a join over sorted, equally partitioned datasets
    multifilewc: A job that counts words from several files.
    pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
    pi: A map/reduce program that estimates Pi using monte-carlo method.
    randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
    randomwriter: A map/reduce program that writes 10GB of random data per node.
    sleep: A job that sleeps at each map and reduce task.
    sort: A map/reduce program that sorts the data written by the random writer.
    sudoku: A sudoku solver.
    wordcount: A map/reduce program that counts the words in the input files.
    java.lang.IllegalArgumentException: An example program must be given as the first argument.
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
    at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Hudson (JIRA) at Nov 14, 2008 at 6:35 pm
    [ https://issues.apache.org/jira/browse/HADOOP-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647692#action_12647692 ]

    Hudson commented on HADOOP-4608:
    --------------------------------

    Integrated in Hadoop-trunk #661 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/661/])
    . Don't print a stack trace when the example driver gets an
    unknown program to run. (Edward Yoon via omalley)

    Examples -Driver does not check first argument.
    -----------------------------------------------

    Key: HADOOP-4608
    URL: https://issues.apache.org/jira/browse/HADOOP-4608
    Project: Hadoop Core
    Issue Type: Bug
    Components: examples
    Affects Versions: 0.18.2
    Reporter: Edward J. Yoon
    Assignee: Edward J. Yoon
    Fix For: 0.20.0

    Attachments: HADOOP-4608.patch


    hadoop@vldb ~/hadoop $ bin/hadoop jar hadoop-0.18.2-examples.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.
    grep: A map/reduce program that counts the matches of a regex in the input.
    join: A job that effects a join over sorted, equally partitioned datasets
    multifilewc: A job that counts words from several files.
    pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
    pi: A map/reduce program that estimates Pi using monte-carlo method.
    randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
    randomwriter: A map/reduce program that writes 10GB of random data per node.
    sleep: A job that sleeps at each map and reduce task.
    sort: A map/reduce program that sorts the data written by the random writer.
    sudoku: A sudoku solver.
    wordcount: A map/reduce program that counts the words in the input files.
    java.lang.IllegalArgumentException: An example program must be given as the first argument.
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:123)
    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
    at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedNov 7, '08 at 1:12a
activeNov 14, '08 at 6:35p
posts9
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Hudson (JIRA): 9 posts

People

Translate

site design / logo © 2022 Grokbase