Hadoop like a PRO
- Lookup yarn queue of a user from bash
This bash function will lookup capacity scheduler XML and return queues for the usergetYarnQueue() { grep $1 -B 1 /etc/hadoop/conf/capacity-scheduler.xml | awk -F'.' '/name/{print $(NF-1)}' }
Works on Hortonworks HDP.
Usage: $ getYarnQueue username - Coming soon …