Hadoop sets the queue and priority for task execution

Source: Internet
Author: User

Queue to which the job was submitted: Mapreduce.job.queuename

Job Priority: Mapreduce.job.priority, priority defaults to 5: Low Very_low NORMAL (default) high Very_high 1, static settings 1.1 Pig version

SET Mapreduce.job.queuename root.etl.distcp;

SET Mapreduce.job.priority High; 1.2 Hive version

SET mapreduce.job.queuename=root.etl.distcp;

SET Mapreduce.job.priority=high; 1.3 MapReduce Version:

Hadoop jar app.jar-d mapreduce.job.queuename=root.etl.distcp-d mapreduce.job.priority=high 2, dynamic tuning If you are already running a task, you can dynamically adjust the queue to which the task belongs and its precedence.
2.1 Adjustment Priority hadoop1.0 and the following version: Hadoop job-set-priority job_201707060942_6121418 very_high 
hadoop2.0 and above: Yarn application-appid application_1478676388082_963529-updatepriority very_high 

2.2 Dynamically adjust queue   hadoop2.0 and above versions can be   by the following command:
Yarn application  -movetoqueue   application_1478676388082_963529  -queue  root.etl 
where application_1478676388082_963529 is yarn Applition Id,queue is followed by a queue that requires move to.


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.