Skip to content

Instantly share code, notes, and snippets.

@butlermh
Created June 8, 2011 23:26
Show Gist options
  • Save butlermh/1015714 to your computer and use it in GitHub Desktop.
Save butlermh/1015714 to your computer and use it in GitHub Desktop.
Changing imports for new Hadoop API
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapred.Mapper;
BECOME
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapred.FileInputFormat;
import org.apache.hadoop.mapred.SequenceFileInputFormat;
BECOME
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat;
import org.apache.hadoop.mapred.FileOutputFormat;
import org.apache.hadoop.mapred.SequenceFileOutputFormat;
BECOME
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
import org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat;
import org.apache.hadoop.mapred.JobClient;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reporter;
ARE NO LONGER NEEDED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment