title: Override in hadoop reducer
body: <p>Iam a beginner to hadoop. I decided to create a sentiment analysis program .I have a mapper class. Output of the mapper is LongWritable and Text format. which is input to the reducer. Hence i have a reducer class as</p>
  
  <pre><code>public class sentreducer extends Reducer&lt;LongWritable,Text,LongWritable,Text&gt;{
            @Override
              public void reduce(LongWritable key,Iterable&lt;Text&gt;value,Context context){
              }   
  </code></pre>
  
  <p>Compiler shows an error saying that the method cannot be overriden. Why is that so?</p>