title: Hadoop MultipleOutputs.addNamedOutput throws "cannot find symbol"
body: <p>I'm using Hadoop 0.20.203.0. I want to output to two different files, so I'm trying to get MultipleOutputs working.</p>
  
  <p>Here's my configuration method:</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
  Configuration conf = new Configuration();
  
  String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
  if (otherArgs.length != 2) {
    System.err.println("Usage: indycascade &lt;in&gt; &lt;out&gt;");
    System.exit(2);
  }
  Job job = new Job(conf, "indy cascade");
  job.setJarByClass(IndyCascade.class);
  job.setMapperClass(ICMapper.class);
  job.setCombinerClass(ICReducer.class);
  job.setReducerClass(ICReducer.class);
  
  TextInputFormat.addInputPath(job, new Path(otherArgs[0]));
  TextOutputFormat.setOutputPath(job, new Path(otherArgs[1]));
  
  MultipleOutputs.addNamedOutput(conf, "sql", TextOutputFormat.class, LongWritable.class, Text.class);
  
  job.waitForCompletion(true);
  System.exit(job.waitForCompletion(true) ? 0 : 1);
  }
  </code></pre>
  
  <p>However, this won't compile. The offending line is <code>MultipleOutputs.addNamedOutput(...)</code>, which throws a "cannot find symbol" error.</p>
  
  <pre><code>isaac/me/saac/i/IndyCascade.java:94: cannot find symbol
  symbol  : method addNamedOutput(org.apache.hadoop.conf.Configuration,java.lang.String,java.lang.Class&lt;org.apa che.hadoop.mapreduce.lib.output.TextOutputFormat&gt;,java.lang.Class&lt;org.apache.hadoop.io.LongWritable&gt;,java.lang.Class&lt;org.apache.hadoop.io.Text&gt;)
  location: class org.apache.hadoop.mapred.lib.MultipleOutputs
      MultipleOutputs.addNamedOutput(conf, "sql", TextOutputFormat.class, LongWritable.class, Text.class);
  </code></pre>
  
  <p>Of course, I tried using a JobConf instead of Configuration, as the API demands, but that leads to the same error. Additionally, JobConf is deprecated.</p>
  
  <p>How do I get MultipleOutputs to work? Is that even the correct class to use?</p>