"Fix" hive dynamic increase partitions No more than 100 issues

Source: Internet
Author: User

Author:kwu

"Solve" hive dynamic increase partitions can not exceed 100 of the problem, the full dynamic generation partitions more than 100 will appear 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:

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_pid  , Entity_time  , entity_priority  , Entity_status  , Entity_channel  , Entity_ EDITOR  , Entity_template  , Entity_url    , Entity_category  , Entity_param  , Entity_shortname  , Entity_subtype  , Entity_compdelay  , day


Sets the dynamic partitions to 100000, which inserts a few years by the day of partitions more than 1000, successfully executes the statement.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Fix" hive dynamic increase 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.