我试图读取包含在hadoop.The地图减少程序聚集一些数据的Excel文件似乎工作正常,但输出端产生在非可读format.Do我需要使用Hadoop中的Excel文件的任何特殊InputFormat读者地图降低?。我的配置如下图
Configuration conf=getConf();
Job job=new Job(conf,"LatestWordCount");
job.setJarByClass(FlightDetailsCount.class);
Path input=new Path(args[0]);
Path output=new Path(args[1]);
FileInputFormat.setInputPaths(job, input);
FileOutputFormat.setOutputPath(job, output);
job.setMapperClass(MapClass.class);
job.setReducerClass(ReduceClass.class);
//job.setCombinerClass(ReduceClass.class);
job.setInputFormatClass(TextInputFormat.class);
job.setOutputFormatClass(TextOutputFormat.class);
job.setMapOutputKeyClass(Text.class);
job.setMapOutputValueClass(Text.class);
//job.setOutputKeyClass(Text.class);
//job.setOutputValueClass(Text.class);
System.exit(job.waitForCompletion(true)?0:1);
return 0;
输出端产生看起来像这样KW OA]nΕr3\ n“P饚6WjJ9Wf = 9mldR Y /Ք7 ^ I M *Ք^ NZL ^)妗Ĵ(dRͱ/ 7TS * M // 7TS &jZoTSR7 @)oTӺ5{%+ۆw6- = E_}米)〜ʅ ژ:#J] U>