Home > Software > BIGDATA > HADOOP
Interview Questions   Tutorials   Discussions   Programs   Videos   Discussion   

HADOOP - Is it possible to provide multiple input to Hadoop? If yes then how can you give multiple directories as input to the Hadoop job




716
views
asked SRVMTrainings May 16, 2013 08:19 AM  

Is it possible to provide multiple input to Hadoop? If yes then how can you give multiple directories as input to the Hadoop job


           

2 Answers



 
answered By madhu   0  

Genereally hadoop does not read directories recursively ( reading directory in side a directory) so we need to set a property mapred.input.dir.recursive=true . and then Place the multiple directeries in one directory and give this directory as path.
flag   
   add comment

 
answered By   0  
Through MultipleInputs,

MultpleInputs.addInputPath(job,path,InputFormat,Mapper);
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert