Skip to content

Instantly share code, notes, and snippets.

@butlermh
Created June 9, 2011 10:42
Show Gist options
  • Save butlermh/1016508 to your computer and use it in GitHub Desktop.
Save butlermh/1016508 to your computer and use it in GitHub Desktop.
Changing mapper for new Hadoop API 6
String application_value = job.get("app.value");
BECOMES
String application_value = config.get("app.value");
Path[] localArchives = DistributedCache.getLocalCacheArchives(job);
BECOMES
Path[] localArchives = DistributedCache.getLocalCacheArchives(config);
Class handlerClass = job.getClass(handlerName, SomeProcessor.class);
BECOMES
Class<?> handlerClass = config.getClass(handlerName, SomeProcessor.class);
processor.setConf(job);
BECOMES
processor.setConf(config);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment