How to change queue of currently running hadoop job?

Gon picture Gon · Apr 2, 2017 · Viewed 12.6k times · Source

My hadoop job was running over 10 hours but since I put it in wrong queue, the containers are kept getting killed by the scheduler.

How do I change the queue of currently running hadoop job without restarting it?

Thank you

Answer

Phan Chuong picture Phan Chuong · Apr 4, 2017

if running Yarn you can change the current job's queue by

yarn application -movetoqueue <app_id> -queue <queue_name>