2017-08-29 74 views
0

我想在使用Oozie的猪脚本之前执行一个shell脚本。据我所知,我所做的每件事情都和我能找到的一样。我的操作是:运行shell脚本oozie动作

<action name="shell_action" cred="yca_auth"> 
    <shell xmlns="uri:oozie:shell-action:0.1"> 
     <job-tracker>${jobTracker}</job-tracker> 
     <name-node>${nameNode}</name-node> 
     <exec>${appPath}/shell_script.sh</exec> 
     <file>${appPath}/shell_script.sh#shell_script.sh</file> 

     <ok to="pig_script_action"/> <error to="kill"/> 
    </shell> 
</action> 

但我不断收到错误:

Caused by: org.apache.oozie.workflow.WorkflowException: E0701: XML schema error, cvc-complex-type.2.4.a: Invalid content was found starting with element 'ok'. One of '{"uri:oozie:shell-action:0.1":file, "uri:oozie:shell-action:0.1":archive, "uri:oozie:shell-action:0.1":capture-output}' is expected. 

我不明白为什么会这样。请帮忙

回答

0

问题在于可以和错误不应该在