【发布时间】:2016-07-29 19:13:32
【问题描述】:
我正在尝试使用 ozzie 运行示例 impala 查询。运行 shell 时出现以下错误
错误:E0701:E0701:XML 架构错误,cvc-complex-type.2.3:元素 'shell' 不能有字符 [children],因为类型的内容 类型是仅元素。
HDFS 中的 Workflow.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>
我检查了..这是一个有效的 XML.first_impala.iql 有一个 select count(*) 查询。
【问题讨论】: