You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by rk vishu <ta...@gmail.com> on 2012/01/17 00:57:00 UTC
small files problem in hdfs
Hello All,
Could any one give me some information how flume handles small files? If
flume agents are setup for text log files, how will flume ensure that there
are not many small files?. I believe waiting for fixed time before pumping
to HDFS may not guarantee the block sized files.
I am trying to write a client app to collect data to hdfs directly using
Java APIs. I am sure i will come across this issue. Are there any utilities
or tricks to combine files from hdfs to larger files (without an MR job).
Any help will be greatly appreciated
-R
Re: small files problem in hdfs
Posted by "W.P. McNeill" <bi...@gmail.com>.
Write a Hadoop job that uses the default mapper and reducer. Specify the
number of reducers when you run it, and it will produce that many output
files, grouping input files together as necessary.