"Resolve" hive dynamic add partitions no more than 100 issues

Source: Internet
Author: User

Author:kwu

"Resolve" hive dynamic add partitions can not exceed 100 problem, full dynamic generation partitions more than 100 will occur such as the following exception:

The maximum number of dynamic partitions is controlled by hive.exec.max.dynamic.partitions and Hive.exec.max.dynamic.part Itions.pernode. Maximum was set to:100

To resolve the 100 limit, you can set the following parameters such as:

Set hive.exec.dynamic.partition.mode=nonstrict; SET hive.exec.max.dynamic.partitions=100000; SET hive.exec.max.dynamic.partitions.pernode=100000; Insert Overwrite table ods.cms_entity PARTITION (day) Select entity_id, Entity_name, Entity_desc, Entity_type, entity_p ID, Entity_time, entity_priority, Entity_status, Entity_channel, Entity_editor, Entity_template, ENTITY_URL, ENT Ity_category, Entity_param, Entity_shortname, Entity_subtype, Entity_compdelay, Dayfrom stage.cms_entity_by_day;


Set the dynamic partitions to 100000, which inserts a few days partitions more than 1000, and runs the statement successfully.

"Resolve" hive dynamic add partitions no more than 100 issues

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.