09-13-2017 06:07 AM - edited 09-13-2017 06:17 AM
I am trying to read RCFiles in the mapper phase. I was successful in achieving this using old mapred API's.
JobConf conf = new JobConf(config, MRDriver.class); conf.setInputFormat(RCFileInputFormat.class);
Refactored the code to use new mapreduce API's as below,
Job job = new Job(config, "Triplets join"); job.setJarByClass(MRDriver.class); job.setInputFormatClass(RCFileInputFormat.class);
i'm getting compilation issues in the below line :
The method setInputFormatClass(Class<? extends InputFormat>) in the type Job is not applicable for the arguments (Class<RCFileInputFormat>)
Why am I facing compilation issues when trying to use new API's. RCFileInputFormat is not implemented using new mapreduce API's ?? I need some suggestions on how to proceed with this.