0
我想運行使用ozzie的示例impala查詢。雖然運行中的shell我在HDFSOOzie Shell -Impala動作XML錯誤
<workflow-app name="shell-impala-select-wf" xmlns="uri:oozie:workflow:0.4">
<start to="shell-impala-select"/>
<action name="shell-impala-select">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>
</configuration>
<exec>script.sh</exec>
<file>${appPath}/script.sh#script.sh</file>
<file>${appPath}/first_impala.iql#first_impala.iql</file>
</shell>
<ok to="end"/>
<error to="kill"/>
</action>
<kill name="kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name="end"/>
</workflow-app>
得到以下錯誤
Error: E0701 : E0701: XML schema error, cvc-complex-type.2.3: Element 'shell' cannot have character [children], because the type's content type is element-only.
Workflow.xml我checked..this是一個有效的XML.first_impala.iql有一個SELECT COUNT(*)查詢。
謝謝bduffin它工作..特殊字符是問題 – user2895589