Created
June 9, 2011 10:39
-
-
Save butlermh/1016505 to your computer and use it in GitHub Desktop.
Changing Mapper for new Hadoop API 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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