org.apache.hadoop.io.LongWritable cannot be cast to org.apache.hadoop.io.Text

代码缺少这一行:job.setInputFormatClass(KeyValueTextInputFormat.class);

上一篇:np.memmap读取大文件


下一篇:centos下搭建lamp环境