How to specify KeyValueTextInputFormat Separator in Hadoop-.20 api?
问题 In new API (apache.hadoop.mapreduce.KeyValueTextInputFormat) , how to specify separator (delimiter) other than tab(which is default) to separate key and Value. Sample Input : one,first line two,second line Ouput Required : Key : one Value : first line Key : two Value : second line I am specifying KeyValueTextInputFormat as : Job job = new Job(conf, "Sample"); job.setInputFormatClass(KeyValueTextInputFormat.class); KeyValueTextInputFormat.addInputPath(job, new Path("/home/input.txt")); This is