AnsweredAssumed Answered

Error during rebuild

Question asked by ananthchn on Nov 10, 2015
Latest reply on Nov 10, 2015 by ananthchn
As per the instructions in the lab guide, I changed the name of the job and commented the setReducerClass as below
//job.setReducerClass(ReceiptsReducer.class);

I get several errors as below, Classpath is set to all the jar files in /opt/mapr/lib. Please help.

    import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
                                                 ^
    ReceiptsDriver.java:15: error: package org.apache.hadoop.mapreduce.lib.input does not exist
    import org.apache.hadoop.mapreduce.lib.input.TextInputFormat;
                                                ^
    ReceiptsDriver.java:18: error: cannot find symbol
    public class ReceiptsDriver extends Configured implements Tool {
                                        ^
      symbol: class Configured
    ReceiptsDriver.java:18: error: cannot find symbol
    public class ReceiptsDriver extends Configured implements Tool {
                                                              ^
      symbol: class Tool
    ReceiptsDriver.java:23: error: cannot find symbol
             System.err.printf("usage: %s [generic options] <inputfile> <outputdir>\n", getClass().getSimpleName());
                                                                                        ^
      symbol:   method getClass()
      location: class ReceiptsDriver
    ReceiptsDriver.java:27: error: cannot find symbol
          Job job = new Job(getConf(), "Ananth receipts");
          ^
      symbol:   class Job
      location: class ReceiptsDriver
    ReceiptsDriver.java:27: error: cannot find symbol
          Job job = new Job(getConf(), "Ananth receipts");
                        ^
      symbol:   class Job
      location: class ReceiptsDriver
    ReceiptsDriver.java:27: error: cannot find symbol
          Job job = new Job(getConf(), "Ananth receipts");
                            ^
      symbol:   method getConf()
      location: class ReceiptsDriver
    ReceiptsDriver.java:35: error: cannot find symbol
          job.setInputFormatClass(TextInputFormat.class);
                                  ^
      symbol:   class TextInputFormat
      location: class ReceiptsDriver
    ReceiptsDriver.java:36: error: cannot find symbol
          job.setOutputKeyClass(Text.class);
                                ^
      symbol:   class Text
      location: class ReceiptsDriver
    ReceiptsDriver.java:37: error: cannot find symbol
          job.setOutputValueClass(Text.class);
                                  ^
      symbol:   class Text
      location: class ReceiptsDriver
    ReceiptsDriver.java:40: error: cannot find symbol
          FileInputFormat.addInputPath(job, new Path(args[0]));
                                                ^
      symbol:   class Path
      location: class ReceiptsDriver
    ReceiptsDriver.java:40: error: cannot find symbol
          FileInputFormat.addInputPath(job, new Path(args[0]));
          ^
      symbol:   variable FileInputFormat
      location: class ReceiptsDriver
    ReceiptsDriver.java:41: error: cannot find symbol
          FileOutputFormat.setOutputPath(job, new Path(args[1]));
                                                  ^
      symbol:   class Path
      location: class ReceiptsDriver
    ReceiptsDriver.java:41: error: cannot find symbol
          FileOutputFormat.setOutputPath(job, new Path(args[1]));
          ^
      symbol:   variable FileOutputFormat
      location: class ReceiptsDriver
    ReceiptsDriver.java:50: error: cannot find symbol
          Configuration conf = new Configuration();
          ^
      symbol:   class Configuration
      location: class ReceiptsDriver
    ReceiptsDriver.java:50: error: cannot find symbol
          Configuration conf = new Configuration();
                                   ^
      symbol:   class Configuration
      location: class ReceiptsDriver
    ReceiptsDriver.java:51: error: cannot find symbol
          System.exit(ToolRunner.run(conf, new ReceiptsDriver(), args));
                      ^
      symbol:   variable ToolRunner
      location: class ReceiptsDriver


Outcomes