How to specify more than one directory as input to the MapReduce Job?



How to specify more than one directory as input to the MapReduce Job?..

Answer / Mridul Mayank

To specify more than one directory as input to a MapReduce job, you can use the FileInputFormat.setInputPaths(JobContext, Path[]) method and pass an array of Path objects representing the directories.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MapReduce Interview Questions

Why Hadoop MapReduce?

1 Answers  


what job does the conf class do?

1 Answers  


How to sort intermediate output based on values in MapReduce?

1 Answers  


What is RecordReader in a Map Reduce?

1 Answers  


Explain what is the function of mapreduce partitioner?

1 Answers  


What are the the issues associated with the map and reduce slots based mechanism in mapReduce?

1 Answers  


Does mapreduce programming model provide a way for reducers to communicate with each other? In a mapreduce job can a reducer communicate with another reducer?

1 Answers  


What main configuration parameters are specified in mapreduce?

1 Answers  


What do you mean by shuffling and sorting in MapReduce?

1 Answers  


What is the data storage component used by Hadoop?

1 Answers  


how can you check whether Namenode is working beside using the jps command?

1 Answers  


Explain the Reducer's reduce phase?

1 Answers  


Categories