It maybe a basic question but in the map reduce program, I would like to read the names of all the files present in the inputfolder rather than the contents and i would like to send the names of those files to my mapper class. Configuration conf=new Configuration();
Job job=new Job(conf,"Analysis");
job.setInputFormatClass(KeyValueTextInputFormat.class);
//Path pa =new Path("hdfs://localhost:54310/home/aparajith");
//pa.
FileInputFormat.addInputPath(job,new Path("/hduser/"));
FileOutputFormat.setOutputPath(job, new Path("/CrawlerOutput23/"));
job.setJarByClass(mapper.Mapper1.class);
job.setMapperClass(mapper.Mapper1.class);
job.setReducerClass(mapper.Reducer1.class);
job.setOutputKeyClass(Text.class);
job.setOutputValueClass(Text.class);
System.exit(job.waitForCompletion(true) ? 0 : -1);
This is my main class and I cant seem to figure it out.