Mark Kerzner wrote:
Raghu,
if I write all files only one, is the cost the same in one directory or do I
need to find the optimal directory size and when full start another
"bucket?"
If you write only once, then writing won't be much of an issue. You can
write them in lexical order to help with buffer copies. These are all
implementation details that a user should not depend on.
That said, the rest of the discussion in this thread is going in the
right direction : to get you to use fewer files that combines a lot of
these small files.
Large number of small files has overhead in many places in HDFS : strain
on DataNodes, NameNode memory, etc.
Raghu.