OOzie Shell -Impala 操作 XML 错误
OOzie Shell -Impala action XML error
我正在尝试使用 ozzie 运行 示例 impala 查询。当 运行ning shell 我遇到错误
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 在 HDFS
<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(*) 查询。
Oozie 验证命令表明这是有效的 XML。不过,我最近遇到了我自己 XML 的相同错误消息。这是由一些无效的空白字符引起的,这些空白字符以某种方式进入了我的 XML(最有可能是杂散的 copy/paste)。尝试从每一行中删除所有 leading/trailing 空格,并查找可能无效的任何其他字符。 Stack Overflow 可能已经从您的 post.
中删除了无效字符
我正在尝试使用 ozzie 运行 示例 impala 查询。当 运行ning shell 我遇到错误
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 在 HDFS
<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(*) 查询。
Oozie 验证命令表明这是有效的 XML。不过,我最近遇到了我自己 XML 的相同错误消息。这是由一些无效的空白字符引起的,这些空白字符以某种方式进入了我的 XML(最有可能是杂散的 copy/paste)。尝试从每一行中删除所有 leading/trailing 空格,并查找可能无效的任何其他字符。 Stack Overflow 可能已经从您的 post.
中删除了无效字符