Skip to content

Instantly share code, notes, and snippets.

@butlermh
Created June 9, 2011 10:30
Show Gist options
  • Save butlermh/1016490 to your computer and use it in GitHub Desktop.
Save butlermh/1016490 to your computer and use it in GitHub Desktop.
Changing Mapper for the new Hadoop API 2
@Override
public void map(InputKey key, InputValue value,
OutputCollector<OutputKey, OutputValue> output, Reporter reporter)
throws IOException {
BECOMES
@Override
public void map(InputKey key, InputValue value,
Mapper<InputKey, InputValue, OutputKey, OutputValue>.Context context)
throws IOException, InterruptedException {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment