Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6244

Hadoop examples when run without an argument, gives ERROR instead of just usage info

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.23.0, trunk-win, 2.6.0
    • None
    • None
    • None

    Description

      Hadoop sort example should not give an ERROR and only should display usage when run with no parameters.

      $ hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar sort
      ERROR: Wrong number of parameters: 0 instead of 2.
      sort [-m <maps>] [-r <reduces>] [-inFormat <input format class&gt;] [-outFormat <output format class&gt;] [-outKey <output key class&gt;] [-outValue <output value class&gt;] [-totalOrder <pcnt> <num samples> <max splits>] <input> <output>
      Generic options supported are
      -conf <configuration file>     specify an application configuration file
      -D <property=value>            use value for given property
      -fs <local|namenode:port>      specify a namenode
      -jt <local|jobtracker:port>    specify a job tracker
      -files <comma separated list of files>    specify comma separated files to be copied to the map reduce cluster
      -libjars <comma separated list of jars>    specify comma separated jar files to include in the classpath.
      -archives <comma separated list of archives>    specify comma separated archives to be unarchived on the compute machines.
      
      The general command line syntax is
      bin/hadoop command [genericOptions] [commandOptions]
      

      Attachments

        1. HADOOP-8834.patch
          2 kB
          Abhishek Kapoor
        2. HADOOP-8834.patch
          2 kB
          Abhishek Kapoor

        Activity

          People

            abhishekkapoor Abhishek Kapoor
            rjustice Robert Justice
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: