Support Questions
Find answers, ask questions, and share your expertise

Falcon job failing with "variable [inputFeed] cannot be resolved" even though this has been declared

Contributor

Hi all,

I'm trying to schedule a job using falcon which will run everytime a new partition is created in Hive, this part appears to be working, however whenever it runs it complains that it is unable to find a variable despite this variable having been declared in the code below

variable [inputFeedCCTM] cannot be resolved
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<process name="processLink" xmlns="uri:falcon:process:0.1">
    <tags>owner=owner</tags>
        <pipelines>***</pipelines>
    <clusters>
        <cluster name="cluster">
           <validity start="2016-07-16T09:00Z" end="2033-01-13T20:00Z"/>
        </cluster>
    </clusters>
    <parallel>1</parallel>
    <order>FIFO</order>
    <timeout>hours(1)</timeout>
    <frequency>days(1)</frequency>
    <timezone>UTC</timezone>
    <inputs>
        <input name="inputFeedLink" feed="feedInLink" start="yesterday(0,0)" end="yesterday(0,0)"/>
        <input name="inputFeedLink2" feed="feedInLink2" start="yesterday(0,0)" end="yesterday(0,0)"/>
        <input name="inputFeedLink3" feed="feedInLink3" start="yesterday(0,0)" end="yesterday(0,0)"/>
    </inputs>
<!--    <outputs>
        <output name="outputFeed" feed="feedOutLink" instance="yesterday(0,0)"/>
    </outputs>-->
    <properties>
        <property name="table" value="linked"/>
        <property name="appPath" value="/path"/>
        <property name="workflowAppPath" value="/wfPath"/>
   </properties>
    <workflow name="falcon-wf" version="5.0"  engine="oozie" path="/path/workflow"/>
    <retry attempts="2" delay="hours(1)" policy="exp-backoff"/>
    <ACL owner="Owner" group="hadoop" permission="0x775"/>
</process>

In the Oozie workflow the variable is being referenced first inside a shell action like so

<argument>${inputFeedLink}</argument>

Any help is much appreciated

Thanks,

Dan

1 REPLY 1

Explorer

I can't find the declaration of the variable "inputFeedCCTM" in your process definition. Could you also attach your feed definition and oozie workflow?