Hadoop like a PRO

  1. Lookup yarn queue of a user from bash
    This bash function will lookup capacity scheduler XML and return queues for the user

    getYarnQueue() {
      grep $1 -B 1 /etc/hadoop/conf/capacity-scheduler.xml | awk -F'.' '/name/{print $(NF-1)}'
    }

    Works on Hortonworks HDP.
    Usage: $ getYarnQueue username

  2. Coming soon …

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *