Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

variable [wfInput] cannot be resolved

variable [wfInput] cannot be resolved

New Contributor

Hello!

I have followed all the steps but when I run the following error occurs:
variable [wfInput] cannot be resolved

 

<coordinator-app name="add-partition-coord" frequency="${coord:hours(1)}" start="${jobStart}" end="${jobEnd}" timezone="UTC" xmlns="uri:oozie:coordinator:0.1">

<datasets>

  <dataset name="tweets" frequency="${coord:hours(1)}" initial-instance="${initialDataset}" timezone="America/Los_Angeles">

   <uri-template>hdfs://jupiter:8020/user/flume/tweets/${YEAR}/${MONTH}/${DAY}/${HOUR}</uri-template>

   <done-flag></done-flag>

  </dataset>

 </datasets>

<input-events>

  <data-in name="input" dataset="tweets">

    <instance>${coord:current(coord:tzOffset() / 60)}</instance>

  </data-in>

  <data-in name="readyIndicator" dataset="tweets">

   <instance>${coord:current(1 + (coord:tzOffset() / 60))}</instance>

  </data-in>

  </input-events>

  <action>

   <workflow>

    <app-path>${workflowRoot}/hive-action.xml</app-path>

    <configuration>

      <property>

         <name>wfInput</name>

         <value>${coord:dataIn('input')}</value>

     </property>

     <property>

        <name>dateHour</name>

        <value>${coord:formatTime(coord:dateOffset(coord:nominalTime(), tzOffset, 'HOUR'), 'yyyyMMddHH')}</value>

     </property>

</configuration>

</workflow>

</action>

</coordinator-app>

 

job.properties

nameNode=hdfs://jupiter:8020
jobTracker= jupiter:8021
workflowRoot=${nameNode}/user/${user.name}/oozie-workflows

jobStart=2016-11-15T12:30Z
jobEnd=2016-11-15T15:00Z

initialDataset=2016-11-15T11:00Z

tzOffset=+1

oozie.use.system.libpath=true
oozie.coord.application.path=${nameNode}/user/${user.name}/oozie-workflows/coord-app.xml

I live in Spain (UTC+1). Job starts correctly at the scheduled time.
Does anyone know why this error occurs ? Can anyone help me?
Thanks in advance.

3 REPLIES 3

Re: variable [wfInput] cannot be resolved

New Contributor
I changed timezone="America/Los_Angeles" to timezone="Europe/Madrid". Same results
Highlighted

Re: variable [wfInput] cannot be resolved

Cloudera Employee

Are you referencing "wfInput" in your hive-action.xml? 

Re: variable [wfInput] cannot be resolved

New Contributor

Yes. At hive-action.xml:

 

 

 

 

<param>WFINPUT=${wfInput}</PARAM>