[
https://issues.apache.org/jira/browse/OOZIE-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16621645#comment-16621645
]
Andras Salamon commented on OOZIE-3346:
---------------------------------------
The second patch adds a {{<prepare>}} block with a {{<delete>}} to the
examples. This fixes the basic git example, but the same fix does not work for
the fluentjob api git example.
Fluentjob generates an XML like this:
{noformat}
...
<git:git>
<git:resource-manager>${resourceManager}</git:resource-manager>
<git:name-node>${nameNode}</git:name-node>
<git:prepare>
<git:delete
path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data/git/oozie"/>
</git:prepare>
<git:git-uri>https://github.com/apache/oozie</git:git-uri>
<git:destination-uri>${nameNode}/user/${wf:user()}/${examplesRoot}/output-data/git/oozie</git:destination-uri>
</git:git>
{noformat}
Deletion does not work for this XML, the relevant warning is the following:
{noformat}
Starting the execution of prepare actions
Warning: unknown prepare operation git:delete -- skipping
Completed the execution of prepare actions successfully
{noformat}
> fix git example
> ---------------
>
> Key: OOZIE-3346
> URL: https://issues.apache.org/jira/browse/OOZIE-3346
> Project: Oozie
> Issue Type: Improvement
> Affects Versions: trunk
> Reporter: Andras Salamon
> Assignee: Andras Salamon
> Priority: Major
> Fix For: 5.1.0
>
> Attachments: OOZIE-3346-1.patch, OOZIE-3346-2.patch
>
>
> The git action example is not working, it gives E0701 error code:
> {noformat}
> $ bin/oozie job -oozie http://localhost:11000/oozie -config
> examples/src/main/apps/git/job.properties -run
> -DnameNode=hdfs://localhost:9000 -D jobTracker=localhost:8032
> Error: E0701 : E0701: XML schema error, cvc-complex-type.2.4.c: The matching
> wildcard is strict, but no declaration can be found for element 'git'.
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)