Wednesday, 15 February 2012

dictionary - Map reduce java fails at mapping during its first reading -


When I try to debug my program on simple input, it should be context.write (text , Lesson) Why is this command, and how can I fix it?

  Public class TaskMapper Mapper & lt; Longverts, text, text, text & gt; {Private Text Country = New Text (); Private text browser = new text (); Public Zero map (long-term proper offset, text line, reference reference) throws IOException, interrupted; Expression {string [] word = line.toString (). the division (""); Country.set (word [1]); Browser.set (word [0]); Context.write (country, browser); }}  

is an input file:
Chrome Israel Israel firefox Denmark Safari Denmark Chrome Israel


No comments:

Post a Comment