Small files automatically merged and output based on Hive Optimization

Source: Internet
Author: User
1. First set the small file standard in the hive-site.xml. lt; propertygt; lt; namegt; hive. merge. smallfiles. avgsizelt; namegt; lt; va

1. First set the small file standard in the hive-site.xml. lt; propertygt; lt; namegt; hive. merge. smallfiles. avgsizelt;/namegt; lt; va

Homepage → Database Technology

Background:

Read News

Small files automatically merged and output based on Hive Optimization

[Date:] Source: Linux community Author: houzhizhen [Font:]

1. First set the small file standard in the hive-site.xml.


Hive. merge. smallfiles. avgsize
536870912
When the average output file size of a job is less than this number, Hive will start an additional map-reduce job to merge the output files into bigger files. this is only done for map-only jobs if hive. merge. mapfiles is true, and for map-reduce jobs if hive. merge. mapredfiles is true.

2. Only map mapreduce output and merge small files.


Hive. merge. mapfiles
True
Merge small files at the end of a map-only job

3. Output mapreduce with reduce and merge small files.


Hive. merge. mapredfiles
True
Merge small files at the end of a map-reduce job

Hive programming guide PDF (Chinese Version)

Hadoop cluster-based Hive Installation

Differences between Hive internal tables and external tables

Hadoop + Hive + Map + reduce cluster installation and deployment

Install in Hive local standalone Mode

WordCount word statistics for Hive Learning

Hive operating architecture and configuration and deployment

Hive details: click here
Hive: click here

This article permanently updates the link address:

  • 0
  • Oracle 11gR2 uses RMAN Duplicate to copy a database

    Asm disk Group loading ORA-15183 error example

    Related information: Hive optimized Hive to merge small files

  • Hive optimization tips-How to Write HQL (07:16:54)
  • Hive optimized tips (10:23:00)
  • Image Information

    View All comments in this article (0)

    Comments

    Latest Information

    Popular this week

    Introduction to Linux community-advertisement service-website map-help Info-contact us
    The articles published on this site (LinuxIDC) do not mean that they agree with the statement or description. They only provide more information and do not constitute any suggestions.


    Copyright©2006-2015 Linux community All rights reserved Shanghai ICP filing no. 15008072-1

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.