Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

oozie workflow spark launch job on a particular queue

I have an oozie configuration:

 <spark xmlns="uri:oozie:spark-action:0.1">
        <job-tracker>${jobTracker}</job-tracker>
        <name-node>${nameNode}</name-node>
        <configuration>
            <property>
                <name>mapred.job.queue.name</name>
                <value>batch_2</value>
            </property>
            <property>
                <name>job.queue.name</name>
                <value>batch_1</value>
            </property>

        </configuration>
        <master>yarn-cluster</master>
        <mode>cluster</mode>
        <name>Batch Search Oozie</name>
        <class>eu.inn.ilms.batchSearch.BatchSearch</class>
        <jar>hdfs:///user/oozie/workflows/batchsearch/lib/batchSearch-0.0.1-SNAPSHOT.jar
        </jar>
        <arg>${zookeeperQuorum}</arg>
        <arg>${solrQuery}</arg>
        <arg>${hdfsFolderPaths}</arg>
        <arg>${solrFinalCollection}</arg>
        <arg>${mongoServiceUrl}</arg>
    </spark>

The map-reduce job is executed on the queue that I want it to. But the spark job still execute on default. Is there a properties that will allow me to set this?

like image 795
Alessandro La Corte Avatar asked Mar 08 '23 15:03

Alessandro La Corte


1 Answers

Use spark-opts tag:

<spark-opts> --queue ${queue_name} </spark-opts>
like image 112
philantrovert Avatar answered Mar 11 '23 06:03

philantrovert