Support Questions

Find answers, ask questions, and share your expertise

Is configuring queue optional for Oozie actions

avatar
Expert Contributor

I am browsing on a number of Oozie examples and the three actions I'm most interested in are Sqoop, Hive and Pig actions. On some examples, the mapreduce.job.queuename property (mapred.queue.name for older version) is configured, normally to default, like this:

<action>
  <sqoop>
  ...
    <configuration>
      <property>
        <name>mapreduce.job.queuename</name>
        <value>default</value>
      </property>
    </configuration>
  </sqoop>
<action>

On the other hand, other examples (especially on Pig, Hive and Hive2 actions) didn't specify any queue (no global configuration is specified either). Does configuring the queue necessary? What would happen if I didn't specify any?

1 ACCEPTED SOLUTION

avatar
Contributor

Setting of this property does not depend on the type of action. If you do not specify it then it will use the default value of the property. The default value for 'mapreduce.job.queuename' is 'default' only.

https://hadoop.apache.org/docs/r2.7.1/hadoop-mapreduce-client/hadoop-mapreduce-client-core/mapred-de...

View solution in original post

3 REPLIES 3

avatar
Contributor

Setting of this property does not depend on the type of action. If you do not specify it then it will use the default value of the property. The default value for 'mapreduce.job.queuename' is 'default' only.

https://hadoop.apache.org/docs/r2.7.1/hadoop-mapreduce-client/hadoop-mapreduce-client-core/mapred-de...

avatar
Super Collaborator

@J. D. Bacolod

Yes, it always good to configure and specify queue for better utilization of the compute resources rather running in default queue.

avatar
Expert Contributor

The answer is it all depends on how YARN is setup for queues. All tools(sqoop, pig, hive) have a way of specifying queue via command line (example) If you are using HUE it can even be setup to impersonate your user. So you really do need to understand how yarn is setup for queuing. You don't need to configure the queue if yarn isn't configured for queues. If it is then you have to read the configuration to know what will happen.