samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Riccomini <>
Subject Re: How to set up yarn queue name
Date Mon, 08 Dec 2014 18:30:40 GMT
Hey Jae,

I don't believe Samza supports this right now. We've always run in the default queue. This
is definitely a feature we should add. Would you be willing to try to patch your Samza library
to fix it?

The place to fix it is in ClientHelper.scala class. The submitApplicaiton() method has an
appCtx class. I believe you'll need to set the queue there using ApplicationSubmissionContext.setQueue.

The steps are:

1) Add a `yarn.queue` field to YarnConfig.
2) Update YarnJob.scala's submit() method to get the yarn queue, and use it in the client.submitApplication()
3) Update ClientHelper.scala's submitApplication() method to take an optional queue, and if
it's set, add it to the ApplicationSubmissionContext, as I described above.


From: <Bae>, Jae Hyeon <<>>
Reply-To: "<>" <<>>
Date: Monday, December 8, 2014 10:15 AM
To: "<>" <<>>
Subject: How to set up yarn queue name


I tried submit Samza job in our EMR hadoop cluster but I got the following error:

[Inline image 1]

So, I asked our company hadoop admin and I got advised to set up the queue name. I added the
following line in Samza job property but it didn't work:


Do you know how to set up yarn queue name?

FYI, I copied our hadoop cluster fair scheduler policy. We disabled default queue.

<?xml version="1.0"?>
    <queue name="adhoc" type="parent">
        <queue name="nsharma">

    <queue name="default">

    <queue name="emergencyuseonly">
        <minResources>0 mb, 0 vcores</minResources>

        <rule name="nestedUserQueue">
            <rule name="specified" create="false" />
        <rule name="specified" create="false" />
        <rule name="reject" />


Thank you
Best, Jae

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message