Oozie过渡无效

时间:2015-07-16 06:41:35

标签: oozie

<workflow-app name="Oozie_app" xmlns="uri:oozie:workflow:0.1">
        <start to="TransformWeatherData"/>
        <action name="TransformWeatherData">
                <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>default</value>
                </property>
            </configuration>
                        <exec>/home/kingsly/working_directory/copyFromLocal.sh</exec>
                        <file>/home/kingsly/working_directory/copyFromLocal.sh</file>
                </shell>
                <ok to="Oozie_app"/>
                <error to="end"/>
        </action>
        <end name='end' />

我是Oozie的新手,我创建了一个工作流和job.properties文件 这就是我的workflow.xml的外观 当我提交此工作流程时,我收到错误

Error: E0708 : E0708: Invalid transition, node [TransformWeatherData] transition [Oozie_app]

请帮我解决这个问题。 我的主要目标是将文件从本地计算机移动到HDfs,并在shell脚本中包含Hadoop命令

1 个答案:

答案 0 :(得分:2)

您指的是丢失的节点。我解决了这个问题:

<workflow-app name="Oozie_app" xmlns="uri:oozie:workflow:0.1">
        <start to="TransformWeatherData"/>
        <action name="TransformWeatherData">
                <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>default</value>
                </property>
            </configuration>
                        <exec>/home/kingsly/working_directory/copyFromLocal.sh</exec>
                        <file>/home/kingsly/working_directory/copyFromLocal.sh</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' />