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.

Coordinator-app validation fails

Coordinator-app validation fails

Expert Contributor

When I try to validate the below coordinator I get an error.

<coordinator-app name="co_FILE" frequency="${coord:hours(1)}" start="${startTime}" end="${endTime}" 
timezone="${timezone}" xmlns="uri:oozie:coordinator:0.4">
<controls>
<concurrency>2</concurrency>
</controls>
<datasets>
<dataset initial-instance="${startTime}" name="reporte" frequency="${coord:hours(1)}" timezone="${timezone}">
<uri-template>${trigger_location}</uri-template>
<done-flag>${trigger_file}</done-flag>
</dataset>
</datasets>
<input-events>
<data-in name="" dataset="">
<instance>${coord:current(0)}</instance>
</data-in>
</input-events>
<action>
<workflow>
<app-path>${deploymentPath}/workflows/FilledElementsCutoff</app-path>
<configuration>
<property>
<name>jobTracker</name>
<value>${jobTracker}</value>
</property>
<property>
<name>nameNode</name>
<value>${nameNode}</value>
</property>
<property>
<name>scriptName</name>
<value>${scriptName}</value>
</property>
<property>
<name>hive_table</name>
<value>${hive_table}</value>
</property>
<property>
<name>prime_version</name>
<value>${prime_version}</value>
</property>
<property>
<name>hive_namespace</name>
<value>${hive_namespace}</value>
</property>
<property>
<name>cutoff_val</name>
<value>${cutoff_val}</value>
</property>
<property>
<name>report_flag</name>
<value>${report_flag}</value>
</property>
<property>
<name>memory</name>
<value>${memory}</value>
</property>
<property>
<name>deploymentPath</name>
<value>${deploymentPath}</value>
</property>
<property>
<name>f</name>
<value>TRUE</value>
</property>
<property>
<name>full_cutoff_list</name>
<value>${full_cutoff_list}</value>
</property>
<property>
<name>cutoffScript</name>
<value>${cutoffScript}</value>
</property>
<property>
<name>cutoffCountryScript</name>
<value>${cutoffCountryScript}</value>
</property>
</configuration>
</workflow>
</action>
</coordinator-app>

The error is:

@ip-10-241-1-100 ~]$ oozie validate /dn01/home/Oozie/app/co_file.xml
Error: E0701: XML schema error, /dn01/home/kaliamoorthya/testarea/Oozie/app/co_file.xml, org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 36; cvc-elt.1: Cannot find the declaration of element 'coordinator-app'.

Any help??

7 REPLIES 7

Re: Coordinator-app validation fails

Super Guru

@Alex Raj - Please find valid coordinator.xml below.

Please note - you cannot keep dataset name to blank, please change data-in name and dataset accordingly

<coordinator-app name="co_FILE" frequency="${coord:hours(1)}" start="${startTime}" end="${endTime}"
timezone="${timezone}" xmlns="uri:oozie:coordinator:0.4">
<controls>
<concurrency>2</concurrency>
</controls>
<datasets>
<dataset initial-instance="${startTime}" name="reporte" frequency="${coord:hours(1)}" timezone="${timezone}">
<uri-template>${trigger_location}</uri-template>
<done-flag>${trigger_file}</done-flag>
</dataset>
</datasets>
<input-events>
<data-in name="mydataset" dataset="mydataset">
<instance>${coord:current(0)}</instance>
</data-in>
</input-events>
<action>
<workflow>
<app-path>${deploymentPath}/workflows/FilledElementsCutoff</app-path>
<configuration>
<property>
<name>jobTracker</name>
<value>${jobTracker}</value>
</property>
<property>
<name>nameNode</name>
<value>${nameNode}</value>
</property>
<property>
<name>scriptName</name>
<value>${scriptName}</value>
</property>
<property>
<name>hive_table</name>
<value>${hive_table}</value>
</property>
<property>
<name>prime_version</name>
<value>${prime_version}</value>
</property>
<property>
<name>hive_namespace</name>
<value>${hive_namespace}</value>
</property>
<property>
<name>cutoff_val</name>
<value>${cutoff_val}</value>
</property>
<property>
<name>report_flag</name>
<value>${report_flag}</value>
</property>
<property>
<name>memory</name>
<value>${memory}</value>
</property>
<property>
<name>deploymentPath</name>
<value>${deploymentPath}</value>
</property>
<property>
<name>f</name>
<value>TRUE</value>
</property>
<property>
<name>full_cutoff_list</name>
<value>${full_cutoff_list}</value>
</property>
<property>
<name>cutoffScript</name>
<value>${cutoffScript}</value>
</property>
<property>
<name>cutoffCountryScript</name>
<value>${cutoffCountryScript}</value>
</property>
</configuration>
</workflow>
</action>
</coordinator-app>
[root@sandbox ~]# oozie validate coord.xml
Valid workflow-app

Re: Coordinator-app validation fails

Expert Contributor

@Kuldeep Kulkarni I am still getting the same error with your updated coordinator. By the way what was wrong with my coordinator and what did you change?

Re: Coordinator-app validation fails

Super Guru
@Alex Raj

Can you please copy entire contents pasted above --> Save it and try validate command?

I changed data-in name and dataset from "" to "mydataset"

You can try this thing:

Open your coordinator.xml in vi/vim editor and press escape key --> type :set list --> see if you can see some special unwanted characters in your coordinator.xml, better option is to overwrite it with contents pasted above.

Re: Coordinator-app validation fails

New Contributor
,

Hi, I have the same problem. I coppied exactly the snipped above to the xml. 'oozie validate' says that's valid, and opon 'oozie -run' I get '

Error: E0701 : E0701: XML schema error, cvc-elt.1.a: Cannot find the declaration of element 'coordinator-app'.

'

Regards

Re: Coordinator-app validation fails

New Contributor

Did anyone find the solution for this issue?

Re: Coordinator-app validation fails

New Contributor

i am also facing the same iisue can any body help?

Re: Coordinator-app validation fails

Contributor

I had the same issue, I added oozie-cooredinator-0.2.xsd to my oozie-site.xml under "oozie.service.SchemaService.wf.ext.schemas" then the error went away, but still I'm facing another issue, explained here.

can anyone help me on that?

Don't have an account?
Coming from Hortonworks? Activate your account here