What could be the reason for the error? I am able to successfully compile on mac eclipse. But not on hadoop server which is running CDH4.
root@hadoop]# javac -cp /usr/lib/hadoop/hadoop-common.jar:/usr/lib/hadoop/client-0.20/commons-cli-1.2.jar:/usr/lib/hadoop/client-0.20/hadoop-core-2.0.0-mr1-cdh4.1.3.jar WordCount.
1. ERROR in WordCount.java (at line 12)
public static class Map extends MapReduceBase implements Mapper <LongWritable, Text, Text, IntWritable>
The type Mapper is not generic; it cannot be parameterized with arguments < LongWritable, Text, Text, >
2. ERROR in WordCount.java (at line 12)
public static class Map extends MapReduceBase implements Mapper <LongWritable, Text, Text, IntWritable> {
Syntax error, parameterized types are only available if source level is 5.0