<?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 How can I reference Falcon feed directory in a Oozie workflow in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-reference-Falcon-feed-directory-in-a-Oozie/m-p/125832#M31092</link>
    <description>&lt;P&gt;I used the Falcon UI to create a input feed and output feed.  Both are hdfs directories with the input directory (inputDir) populated by flume and the ouput directory (outputDir) to be populated by my oozie workflow shell-action.&lt;/P&gt;&lt;P&gt;Next I created a Falcon process which references my oozie workflow.xml file and I added a input with a name inputDir and output with the name outputDir.&lt;/P&gt;&lt;P&gt;below is the shell-action I am using in my oozie workflow.xml&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;shell xmlns="uri:oozie:shell-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/configuration&amp;gt;
            &amp;lt;exec&amp;gt;/usr/hdp/current/spark-client/bin/spark-submit&amp;lt;/exec&amp;gt;
            &amp;lt;argument&amp;gt;--master&amp;lt;/argument&amp;gt;
            &amp;lt;argument&amp;gt;yarn-client&amp;lt;/argument&amp;gt;
            &amp;lt;argument&amp;gt;wordCountWArgs.py&amp;lt;/argument&amp;gt;
            &amp;lt;argument&amp;gt;${inputDir}&amp;lt;/argument&amp;gt;
            &amp;lt;argument&amp;gt;${outputDir}&amp;lt;/argument&amp;gt;
            &amp;lt;env-var&amp;gt;HADOOP_USER_NAME=falcon&amp;lt;/env-var&amp;gt;
            &amp;lt;file&amp;gt;${nameNode}/user/falcon/apps/scripts/wordCountWArgs.py#wordCountWArgs.py&amp;lt;/file&amp;gt;   
            &amp;lt;capture-output/&amp;gt;
        &amp;lt;/shell&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the job fails and I can see a message in the log that it couldn't reference ${inputDir} and ${outputDir}&lt;/P&gt;&lt;P&gt;Does anyone have any idea of where I am going wrong?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 06:23:20 GMT</pubDate>
    <dc:creator>dwee101</dc:creator>
    <dc:date>2016-06-08T06:23:20Z</dc:date>
    <item>
      <title>How can I reference Falcon feed directory in a Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-reference-Falcon-feed-directory-in-a-Oozie/m-p/125832#M31092</link>
      <description>&lt;P&gt;I used the Falcon UI to create a input feed and output feed.  Both are hdfs directories with the input directory (inputDir) populated by flume and the ouput directory (outputDir) to be populated by my oozie workflow shell-action.&lt;/P&gt;&lt;P&gt;Next I created a Falcon process which references my oozie workflow.xml file and I added a input with a name inputDir and output with the name outputDir.&lt;/P&gt;&lt;P&gt;below is the shell-action I am using in my oozie workflow.xml&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;shell xmlns="uri:oozie:shell-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/configuration&amp;gt;
            &amp;lt;exec&amp;gt;/usr/hdp/current/spark-client/bin/spark-submit&amp;lt;/exec&amp;gt;
            &amp;lt;argument&amp;gt;--master&amp;lt;/argument&amp;gt;
            &amp;lt;argument&amp;gt;yarn-client&amp;lt;/argument&amp;gt;
            &amp;lt;argument&amp;gt;wordCountWArgs.py&amp;lt;/argument&amp;gt;
            &amp;lt;argument&amp;gt;${inputDir}&amp;lt;/argument&amp;gt;
            &amp;lt;argument&amp;gt;${outputDir}&amp;lt;/argument&amp;gt;
            &amp;lt;env-var&amp;gt;HADOOP_USER_NAME=falcon&amp;lt;/env-var&amp;gt;
            &amp;lt;file&amp;gt;${nameNode}/user/falcon/apps/scripts/wordCountWArgs.py#wordCountWArgs.py&amp;lt;/file&amp;gt;   
            &amp;lt;capture-output/&amp;gt;
        &amp;lt;/shell&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the job fails and I can see a message in the log that it couldn't reference ${inputDir} and ${outputDir}&lt;/P&gt;&lt;P&gt;Does anyone have any idea of where I am going wrong?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 06:23:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-reference-Falcon-feed-directory-in-a-Oozie/m-p/125832#M31092</guid>
      <dc:creator>dwee101</dc:creator>
      <dc:date>2016-06-08T06:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reference Falcon feed directory in a Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-reference-Falcon-feed-directory-in-a-Oozie/m-p/125833#M31093</link>
      <description>&lt;P&gt;Oozie cannot directly reference Falcon objects.  To use Oozie with Falcon, create an Input Feed and Output feed and a Falcon Oozie process.  Falcon will then generate the Oozie workflow XML.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 03:09:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-reference-Falcon-feed-directory-in-a-Oozie/m-p/125833#M31093</guid>
      <dc:creator>cnormile</dc:creator>
      <dc:date>2016-06-14T03:09:46Z</dc:date>
    </item>
  </channel>
</rss>

