Skip to content

Instantly share code, notes, and snippets.

@butlermh
Created June 9, 2011 10:39
Show Gist options
  • Save butlermh/1016505 to your computer and use it in GitHub Desktop.
Save butlermh/1016505 to your computer and use it in GitHub Desktop.
Changing Mapper for new Hadoop API 5
@Overide
public void configure(JobConf job) {
super.configure(job);
config = job;
BECOMES
@Override
public void setup(Mapper<InputKey, InputValue, OutputKey, OutputValue>.Context context)
throws InterruptedException, IOException {
super.setup(context);
config = context.getConfiguration();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment