I want to acces the myCounter.my value in reducer :
public static class Map extends Mapper<LongWritable, Text, ImmutableBytesWritable, ImmutableBytesWritable>
{
public static enum myCounter{my};
@Override
public void map(LongWritable key, Text value, Context context)
{
context.getCounter(myCounter.my).increment(1);
context.write( new ImmutableBytesWritable ( ),new ImmutableBytesWritable() );
}
}
public static class Reduce extends Reducer<ImmutableBytesWritable, ImmutableBytesWritable, Text, Text>
{
@Override
public void reduce(ImmutableBytesWritable key,Iterable<ImmutableBytesWritable> result,Context context)
{
}
}
how to make it work for new API(hadoop 0.20.0 API) ?
**Or**
I want to know the total number of mapper output ? Is there any better way ? (i am not able to access counter in Reducer:
`Group Name->org.apache.hadoop.mapred.Task$Counter Counter Name->MAP_OUTPUT_RECORDS`)
Hi
What's the use-case? Talend tries to avoid the need to write map-reduce code through abstraction the transformation into a set of graphical components.
Have you reviewed the Talend Youtube big data videos?
http://www.youtube.com/user/TalendChannel?feature=g-high-u