<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Specify different queue when using Oozie web services sqoop job proxy submission? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128670#M51574</link>
    <description>&lt;P&gt;I don't see an example but theres a mention of parameter called queueName, can you pass that as argument? Most likely your original job.Properties file should have that defined. So you can override in your proxy call that parameter with correct queue.&lt;/P&gt;&lt;PRE&gt;Updating coordinator definition and properties
Existing coordinator definition and properties will be replaced by new definition and properties. Refer Updating coordinator definition and properties

PUT oozie/v2/job/0000000-140414102048137-oozie-puru-C?action=update

Response:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{"update":
     {"diff":"**********Job definition changes**********\n******************************************\n**********Job conf changes****************\n@@ -8,16 +8,12 @@\n
          &amp;lt;value&amp;gt;hdfs:\/\/localhost:9000\/user\/purushah\/examples\/apps\/aggregator\/coordinator.xml&amp;lt;\/value&amp;gt;\r\n   &amp;lt;\/property&amp;gt;\r\n   &amp;lt;property&amp;gt;\r\n
          -    &amp;lt;name&amp;gt;user.name&amp;lt;\/name&amp;gt;\r\n
          -    &amp;lt;value&amp;gt;purushah&amp;lt;\/value&amp;gt;\r\n
          -    &amp;lt;\/property&amp;gt;\r\n
          -  &amp;lt;property&amp;gt;\r\n     &amp;lt;name&amp;gt;start&amp;lt;\/name&amp;gt;\r\n
               &amp;lt;value&amp;gt;2010-01-01T01:00Z&amp;lt;\/value&amp;gt;\r\n   &amp;lt;\/property&amp;gt;\r\n   &amp;lt;property&amp;gt;\r\n
          -    &amp;lt;name&amp;gt;newproperty&amp;lt;\/name&amp;gt;\r\n
          -    &amp;lt;value&amp;gt;new&amp;lt;\/value&amp;gt;\r\n
          +    &amp;lt;name&amp;gt;user.name&amp;lt;\/name&amp;gt;\r\n
          +    &amp;lt;value&amp;gt;purushah&amp;lt;\/value&amp;gt;\r\n   &amp;lt;\/property&amp;gt;\r\n   &amp;lt;property&amp;gt;\r\n
               &amp;lt;name&amp;gt;queueName&amp;lt;\/name&amp;gt;\r\n******************************************\n"
      }
}&lt;/PRE&gt;&lt;PRE&gt;queueName = default
&lt;/PRE&gt;</description>
    <pubDate>Sun, 15 Jan 2017 00:33:09 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2017-01-15T00:33:09Z</dc:date>
    <item>
      <title>Specify different queue when using Oozie web services sqoop job proxy submission?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128669#M51573</link>
      <description>&lt;P&gt;We
are trying to submit Oozie sqoop jobs using the Oozie Web Services API, sqoop
job proxy submission as documented here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://oozie.apache.org/docs/4.1.0/WebServicesAPI.html#Proxy_Sqoop_Job_Submission"&gt;https://oozie.apache.org/docs/4.1.0/WebServicesAPI.html#Proxy_Sqoop_Job_Submission&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We
are working with a kerberized cluster with Knox gateway, and have not been able
to find good documentation on how to implement the AuthOozieClient in an
environment like this.  (If anyone has some documentation they could share
on this, that would be great!)&lt;/P&gt;&lt;P&gt;The
sqoop command is generated dynamically based on selections made by the user in
a web interface, and the XML sent to Oozie.  The jobs are going to the
“default” queue, and we want them to go to their own queue.&lt;/P&gt;&lt;P&gt;I
have tried adding the following to the XML that is passed to the web service,
but the jobs are still being submitted to the default queue:&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;mapreduce.job.queuename&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;&lt;U&gt;sqoop&lt;/U&gt;&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;Using
this property when running sqoop from the command line, or adding it to a
workflow.xml file in the configuration section, allows the jobs to be submitted
to the sqoop queue.&lt;/P&gt;&lt;P&gt;Does
anyone know if this web service supports specifying properties other than the
required and optional properties documented?  Is there a different way to
accomplish this while still using the sqoop job proxy submission? &lt;/P&gt;&lt;P&gt;Thank
you for any help you can provide.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 04:37:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128669#M51573</guid>
      <dc:creator>fogarty_amanda</dc:creator>
      <dc:date>2017-01-14T04:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Specify different queue when using Oozie web services sqoop job proxy submission?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128670#M51574</link>
      <description>&lt;P&gt;I don't see an example but theres a mention of parameter called queueName, can you pass that as argument? Most likely your original job.Properties file should have that defined. So you can override in your proxy call that parameter with correct queue.&lt;/P&gt;&lt;PRE&gt;Updating coordinator definition and properties
Existing coordinator definition and properties will be replaced by new definition and properties. Refer Updating coordinator definition and properties

PUT oozie/v2/job/0000000-140414102048137-oozie-puru-C?action=update

Response:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{"update":
     {"diff":"**********Job definition changes**********\n******************************************\n**********Job conf changes****************\n@@ -8,16 +8,12 @@\n
          &amp;lt;value&amp;gt;hdfs:\/\/localhost:9000\/user\/purushah\/examples\/apps\/aggregator\/coordinator.xml&amp;lt;\/value&amp;gt;\r\n   &amp;lt;\/property&amp;gt;\r\n   &amp;lt;property&amp;gt;\r\n
          -    &amp;lt;name&amp;gt;user.name&amp;lt;\/name&amp;gt;\r\n
          -    &amp;lt;value&amp;gt;purushah&amp;lt;\/value&amp;gt;\r\n
          -    &amp;lt;\/property&amp;gt;\r\n
          -  &amp;lt;property&amp;gt;\r\n     &amp;lt;name&amp;gt;start&amp;lt;\/name&amp;gt;\r\n
               &amp;lt;value&amp;gt;2010-01-01T01:00Z&amp;lt;\/value&amp;gt;\r\n   &amp;lt;\/property&amp;gt;\r\n   &amp;lt;property&amp;gt;\r\n
          -    &amp;lt;name&amp;gt;newproperty&amp;lt;\/name&amp;gt;\r\n
          -    &amp;lt;value&amp;gt;new&amp;lt;\/value&amp;gt;\r\n
          +    &amp;lt;name&amp;gt;user.name&amp;lt;\/name&amp;gt;\r\n
          +    &amp;lt;value&amp;gt;purushah&amp;lt;\/value&amp;gt;\r\n   &amp;lt;\/property&amp;gt;\r\n   &amp;lt;property&amp;gt;\r\n
               &amp;lt;name&amp;gt;queueName&amp;lt;\/name&amp;gt;\r\n******************************************\n"
      }
}&lt;/PRE&gt;&lt;PRE&gt;queueName = default
&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Jan 2017 00:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128670#M51574</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-01-15T00:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Specify different queue when using Oozie web services sqoop job proxy submission?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128671#M51575</link>
      <description>&lt;P&gt;when submitting jobs via oozie, there is a laucher job and the launched job (in this case mr job launched by Sqoop).   You are probably seeing the launcher job getting submitted to the default queue.   To get the launcher job also go to sqoop queue, you need to add the following config property to the workflow.xml or the job propert&lt;/P&gt;&lt;P&gt;oozie.launcher.mapreduce.job.queuename = sqoop&lt;/P&gt;&lt;P&gt;In general, if you want to pass any config to the launcher job, you need to prefix  the config name with oozie.launcher.   --   For example, if you are running a hive action and the need to configure a larger map memory for the hive client&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 23:23:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128671#M51575</guid>
      <dc:creator>vranganathan</dc:creator>
      <dc:date>2017-01-15T23:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Specify different queue when using Oozie web services sqoop job proxy submission?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128672#M51576</link>
      <description>&lt;P&gt;Thank you for your response!&lt;/P&gt;&lt;P&gt;I added that parameter to the XML:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;configuration&amp;gt;
 &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt; ... removed ... &amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;mapred.job.tracker&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt; ... removed ... &amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;oozie.launcher.mapreduce.job.queuename&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;sqoop&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;mapreduce.job.queuename&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;sqoop&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;user.name&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt; ... removed ... &amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;oozie.sqoop.command&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt; ... removed ... &amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;oozie.libpath&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt; ... removed ... &amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
 &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;oozie.proxysubmission&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/PRE&gt;&lt;P&gt;And ran the application, but both jobs are still getting submitted to the default queue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11442-default-queue.jpg" style="width: 1179px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22505iCFC44A39FFC1FCBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11442-default-queue.jpg" alt="11442-default-queue.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is as if the web service is ignoring these options.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:48:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128672#M51576</guid>
      <dc:creator>fogarty_amanda</dc:creator>
      <dc:date>2019-08-19T09:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Specify different queue when using Oozie web services sqoop job proxy submission?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128673#M51577</link>
      <description>&lt;P&gt;You should set something like queueName = sqoop in your job properties and refer to it in the workflow action config for the two parameters.   Sorry if it was not clear&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 02:36:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128673#M51577</guid>
      <dc:creator>vranganathan</dc:creator>
      <dc:date>2017-01-17T02:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Specify different queue when using Oozie web services sqoop job proxy submission?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128674#M51578</link>
      <description>&lt;P&gt;@fogartyamanda&lt;/P&gt;&lt;P&gt; The configuration properties will be passed to the sqoop job in following way:&lt;/P&gt;&lt;PRE&gt;    &amp;lt;property&amp;gt;
        &amp;lt;name&amp;gt;oozie.sqoop.options.1&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;-Doozie.launcher.mapreduce.job.queuename=sqoop&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
        &amp;lt;name&amp;gt;oozie.sqoop.options.0&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;-Dmapreduce.job.queuename=sqoop&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;    
    &amp;lt;property&amp;gt;
          &amp;lt;name&amp;gt;oozie.sqoop.options.size&amp;lt;/name&amp;gt;
          &amp;lt;value&amp;gt;2&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 13:34:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128674#M51578</guid>
      <dc:creator>abafna</dc:creator>
      <dc:date>2017-01-17T13:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Specify different queue when using Oozie web services sqoop job proxy submission?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128675#M51579</link>
      <description>&lt;P&gt;Abhishek,&lt;/P&gt;&lt;P&gt;Thank you, this worked! &lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 22:01:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128675#M51579</guid>
      <dc:creator>fogarty_amanda</dc:creator>
      <dc:date>2017-01-17T22:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Specify different queue when using Oozie web services sqoop job proxy submission?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128676#M51580</link>
      <description>&lt;P&gt;Simply set a propert in oozie workflow ie. hadoop property "MAPRED&amp;gt;JOB&amp;gt;QUEUENAME" value would be "YOUR_QUEUE_NAME". this worked for me my oozie workflow is being submitted to a particular QUEUE now. Cheers.&lt;/P&gt;,&lt;P&gt;I also had the similar requirement to submit the job in a particular queue. We simply need to change at one place that is oozie workflow settings. Add one hadoop property there as "MAPRED.JOB.QUEUENAME"  and Value is "YOUR_QUEUE_NAME". By this way workflow is submitted to defined queue.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:50:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Specify-different-queue-when-using-Oozie-web-services-sqoop/m-p/128676#M51580</guid>
      <dc:creator>kuldeepsinghvit</dc:creator>
      <dc:date>2017-03-06T14:50:24Z</dc:date>
    </item>
  </channel>
</rss>

