<?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: Passing Paramter to Oozie workflow in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29678#M6536</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your reply does help. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still have doubts regarding passing parameters via Hue UI.&lt;/P&gt;&lt;P&gt;1.If I pass the parameter value using the Properties field, then will it be updated in the workflow under &amp;lt;agr&amp;gt; tag or &amp;lt;property&amp;gt; tag?&lt;/P&gt;&lt;P&gt;2. What is the use of Parameter field under Workflow Settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also could you please give some insight regarding my use-case: I want to run the java mapreduce program using mapreduce action.&lt;/P&gt;&lt;P&gt;I have a jar with multiple Mapper and Reducer Class defined and I want to use Oozie as driver for my Mapper and Reducer programs. And at the same time passing argument values through Oozie to my Mappers and Reducers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this using Hue UI to create and workflow?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2015 14:10:58 GMT</pubDate>
    <dc:creator>Anishsk10</dc:creator>
    <dc:date>2015-07-16T14:10:58Z</dc:date>
    <item>
      <title>Passing Paramter to Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29464#M6532</link>
      <description>&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new Oozie and some doubts regarding the creating workflows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have java mapreduce progrm which expects 3 parameters to be passed: input directory, output directory and the field position of the record in the file that I need to pass to the program as parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hadoop jar /home/cloudera/ooziesample.jar /user/cloudera/wordcount/input/ /user/cloudera/wordcount/output 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to create a workflow for running this jar as mapreduce actions. I want to pass these 3 parameters via oozie workflow : input directory, output directory and the field position of the record. Could you please help me know how to do the same&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:33:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29464#M6532</guid>
      <dc:creator>Anishsk10</dc:creator>
      <dc:date>2022-09-16T09:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Paramter to Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29571#M6533</link>
      <description>You can use the new Java driver feature of the Oozie MR action to run your jar in an easier way. Follow this: &lt;A href="http://archive.cloudera.com/cdh5/cdh/5/oozie/WorkflowFunctionalSpec.html#a3.2.2.2_Configuring_the_MapReduce_action_with_Java_code" target="_blank"&gt;http://archive.cloudera.com/cdh5/cdh/5/oozie/WorkflowFunctionalSpec.html#a3.2.2.2_Configuring_the_MapReduce_action_with_Java_code&lt;/A&gt;</description>
      <pubDate>Wed, 15 Jul 2015 05:08:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29571#M6533</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-07-15T05:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Paramter to Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29669#M6534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use Hue for creating and running the Oozie workflows.&lt;/P&gt;&lt;P&gt;Whatever Properties that I am trying to pass (eg: mapreduce.map.class and mapreduce.reduce.class) is not getting written to job.properties file. Hence could see those in workflow.xml as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have few Qs:&lt;/P&gt;&lt;P&gt;Where should define parameter and its value in Hue UI for a workflow?&lt;/P&gt;&lt;P&gt;Do I need to upload .jar in lib directory of the workflow and what is the need of that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Use-case:&lt;/P&gt;&lt;P&gt;I want to run the java mapreduce program using mapreduce action.&lt;/P&gt;&lt;P&gt;I have a jar with multiple Mapper and Reducer Class defined and I want to use Oozie as driver for my Mapper and Reducer programs. And at the same time passing argument values through Oozie to my Mappers and Reducers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know how to achieve this using Hue and Oozie?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 13:17:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29669#M6534</guid>
      <dc:creator>Anishsk10</dc:creator>
      <dc:date>2015-07-16T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Paramter to Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29672#M6535</link>
      <description>&amp;gt; is not getting written to job.properties file&lt;BR /&gt;&lt;BR /&gt;The job.properties file is just for WF variable resolution and some Oozie submission control properties. They aren't used for actual job configuration, however.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Where should define parameter and its value in Hue UI for a workflow?&lt;BR /&gt;&lt;BR /&gt;Within your Action's configuration view, look for "Properties" to see a Key=Value like field. Enter your configuration properties here.&lt;BR /&gt;&lt;BR /&gt;If you are using new-API values, you may want to read the requirements also at &lt;A href="https://cwiki.apache.org/confluence/display/OOZIE/Map+Reduce+Cookbook" target="_blank"&gt;https://cwiki.apache.org/confluence/display/OOZIE/Map+Reduce+Cookbook&lt;/A&gt; (search page for "new-api").&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Do I need to upload .jar in lib directory of the workflow and what is the need of that?&lt;BR /&gt;&lt;BR /&gt;You will need to upload the application and any non-hadoop dependencies, because Oozie runs a remote launcher job to run your classes, and the jars need to exist within the workflow lib directory for Oozie to ship them properly via distributed-cache.&lt;BR /&gt;&lt;BR /&gt;Does this help?</description>
      <pubDate>Thu, 16 Jul 2015 13:36:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29672#M6535</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-07-16T13:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Paramter to Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29678#M6536</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your reply does help. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still have doubts regarding passing parameters via Hue UI.&lt;/P&gt;&lt;P&gt;1.If I pass the parameter value using the Properties field, then will it be updated in the workflow under &amp;lt;agr&amp;gt; tag or &amp;lt;property&amp;gt; tag?&lt;/P&gt;&lt;P&gt;2. What is the use of Parameter field under Workflow Settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also could you please give some insight regarding my use-case: I want to run the java mapreduce program using mapreduce action.&lt;/P&gt;&lt;P&gt;I have a jar with multiple Mapper and Reducer Class defined and I want to use Oozie as driver for my Mapper and Reducer programs. And at the same time passing argument values through Oozie to my Mappers and Reducers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this using Hue UI to create and workflow?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 14:10:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Passing-Paramter-to-Oozie-workflow/m-p/29678#M6536</guid>
      <dc:creator>Anishsk10</dc:creator>
      <dc:date>2015-07-16T14:10:58Z</dc:date>
    </item>
  </channel>
</rss>

