Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2574

bugs in mapred tutorial

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.15.3
    • documentation
    • None

    Description

      Sam Pullara sends me:

      Phu was going through the WordCount example... lines 52 and 53 should have args[0] and args[1]:
      
      http://lucene.apache.org/hadoop/docs/current/mapred_tutorial.html
      
      The javac and jar command are also wrong, they don't include the directories for the packages, should be:
      
      $ javac -classpath ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar -d classes WordCount.java 
      $ jar -cvf /usr/joe/wordcount.jar WordCount.class -C classes .
      
      

      Attachments

        1. HADOOP-2574_0_20080110.patch
          23 kB
          Arun Murthy
        2. HADOOP-2574_1_20080114.patch
          28 kB
          Arun Murthy
        3. mapred_tutorial.html
          111 kB
          Arun Murthy
        4. mapred_tutorial.html
          111 kB
          Arun Murthy

        Activity

          People

            acmurthy Arun Murthy
            cutting Doug Cutting
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: