You can specify input as input/* and it considers both files in input1
and input2.

Thanks
Pallavi

-----Original Message-----
From: Kunsheng Chen [mailto:[email protected]] 
Sent: Sunday, May 24, 2009 2:35 AM
To: [email protected]
Subject: Could hadoop do word count in all files under two-level sub
folders?


Hello everyone,


I referred to the hadoop tutorial online and found that wordcount
example, it seems to me that all files have to be under a certain folder
to make it work.


I am not sure whether that workcount example could work for multiple
subfolders.

For example, if the input folder is 'input' , and I have two subfolders
'input/input1', 'input/input2', will it work if I only tell the program
folder 'input' ?  Or I have to program a little bit myself for that?


I know it is a simple quesiton that could be tried myself, but the thing
is that I haven't decided whether to use hadoop for my project and not
yet installed it.


So any simple answer or idea is well apprecaited, 

Thanks a lot!

-Kun 


      

Reply via email to