错误的原因可能是什么?我能够在mac eclipse上成功编译。但不在运行 CDH4 的 hadoop 服务器上。
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 字数。
1. ERROR in WordCount.java (at line 12)
public static class Map extends MapReduceBase implements Mapper <LongWritable, Text, Text, IntWritable>
Mapper 类型不是通用的;它不能用参数参数化 < LongWritable, Text, Text, >
2. ERROR in WordCount.java (at line 12)
public static class Map extends MapReduceBase implements Mapper <LongWritable, Text, Text, IntWritable> {
语法错误,参数化类型仅在源级别为 5.0 时可用