2

I am looking for a way to set application priority for task in hive. When task is committed, I want to set a high priority (like 100) to it. this param can be seen on page: enter image description here I am looking for a param like 'set mapreduce.map.memory.mb=4096;',so I can set priority for this task.

leftjoin
  • 36,950
  • 8
  • 57
  • 116
Z.Lun
  • 247
  • 1
  • 2
  • 20

1 Answers1

2

In hive session, also it is possible to set the same property in map-reduce program configuration:

SET mapreduce.job.priority=VERY_HIGH;  

For the job_id:

 hadoop job -set-priority <job-id> <priority> 

There are five possible priority levels:

VERY_HIGH
HIGH
NORMAL
LOW
VERY_LOW

Queue priority configuration: https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html#Setup_for_application_priority.

leftjoin
  • 36,950
  • 8
  • 57
  • 116