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

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 'spark'

Highlighted

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 'spark'

Explorer

Hi Team

Iam getting below error when i run a spark job through oozie.

E0701 : E0701: XML schema error, cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'spark'.

WORk FLOW below::::

1 REPLY 1
Highlighted

Re: 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 'spark'

Explorer
<workflow-app xmlns="uri:oozie:workflow:0.4" name="PySpark-Action">
            <start to="pyspark"/>
            <action name="pyspark">
                <spark xmlns="uri:oozie:spark-action:0.2">
                    <job-tracker>${resourceManager}</job-tracker>
                    <name-node>${nameNode}</name-node>
                    <master>yarn-cluster</master>
                    <name>PySparkExample</name>
                    <jar>${nameNode}/user/${wf:user()}/examples/apps/task-pyspark/scripts/spark-script.py</jar>
                    <spark-opts>--num-executors 3 --driver-memory 512m --executor-memory 512m --executor-cores 1</spark-opts>
                <error to="kill"/>
            </action>
            <kill name="kill">
                <message>Called from directory ${nameNode}/user/${wf:user()} with resource manager ${resourceManager}; ${wf:errorMessage(wf:lastErrorNode())}</message>
            </kill>
            <end name="end"/>
        </workflow-app>