Raymond: You can use the following code to pass value from main to your reducer class: @Override protected void setup(Context context) throws IOException, InterruptedException { try { Configuration conf = context.getConfiguration(); watermark = Long.parseLong(conf.get("watermark")); } catch (NumberFormatException e) { e.printStackTrace(); }
} On Mon, Mar 15, 2010 at 7:54 AM, Nick Jones <nick.jo...@amd.com> wrote: > On 3/15/2010 9:51 AM, Raymond Jennings III wrote: > >> I need to pass a counter value to my reducer from the main program. Can >> this be done through the context parameter somehow? >> >> >> >> >> >> > Have you tried serializing both the mapper output value and this counter as > "value" in the key/value pair? > > Nick Jones > > >