Skip to content

Instantly share code, notes, and snippets.

@butlermh
Created June 9, 2011 10:34
Show Gist options
  • Save butlermh/1016497 to your computer and use it in GitHub Desktop.
Save butlermh/1016497 to your computer and use it in GitHub Desktop.
Changing mapper to new Hadoop API 3
reporter.incrCounter(family, type, 1);
BECOMES
context.getCounter(family, type).increment(1);
output.collect(key, value);
BECOMES
context.write(key, value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment