Jobtracker hang problems caused by hive dynamic partitioning

Source: Internet
Author: User
Keywords LED here and then when at that time

Familiar with the Jobtracker is known, in the job initialization eagerhttp://www.aliyun.com/zixun/aggregation/17034.html "> Taskinitializationlistener will lock the jobinprogress and then inittask, details please check the code, here is a step is to write the initial data to HDFs and flush, and Fairscheduler update thread, when updating resource pool resources, is holding exclusive locks on Jobtracker and Fairscheduler and then calculating resource conditions for each resource pool, while computing running_map/running_ Reduce time to get the corresponding jobinprogress lock, readers may not understand why I want to talk about this piece, the problem appears here.

Hive in processing dynamic partitions, the main experience of such a few steps tablescan->filesink->movetask

When the Filesink is performed according to the record, the N (part) writer is then started to process the dynamic partition field, that is, DT here, if DT is contiguous then open a block to start writing, otherwise close the current block and open the new dir Block continues to write, where if the DT is discontinuous and the record number is large, a large number of files are generated, resulting in a HDFS load elevation, which is matched to the HDFS monitoring:

Cluster load at that time:

Number of documents produced at that time:

Then lead to jobinprogress is locked, thus Jobtracker is locked, lead jobtracker hang Live!

So how do we solve it? using Distributeby DT to arrange the same dt together and then Filesink will not cause a large number of small files produced.

Related Article

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.