Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.3.0
-
None
-
Reviewed
-
HIVE-439. Merge small files after a map-only job. (Namit Jain via zshao)
Description
There are cases when the input to a Hive job are thousands of small files. In this case, there is a mapper for each file. Most of the overhead for spawning all these mappers can be avoided if these small files are combined into fewer larger files.
The problem can also be addressed by having a mapper span multiple blocks as in:
https://issues.apache.org/jira/browse/HIVE-74
Bit, it also makes sense in HIVE to merge files whenever possible.
<property>
<name>hive.merge.mapfiles</name>
<value>true</value>
<description>Merge small files at the end of the job</description>
</property>
<property>
<name>hive.merge.size.per.task</name>
<value>256000000</value>
<description>Size of merged files at the end of the job</description>
</property>