blob: 83d4ca2a7cea2a71d39ebbee86371a01b7450e5b [file] [log] [blame]
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<workflow-app name="gobblin-oozie-mr-example-workflow" xmlns="uri:oozie:workflow:0.1">
<start to="gobblin-mr-job"/>
<action name="gobblin-mr-job">
<java>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>oozie.launcher.mapreduce.user.classpath.first</name>
<value>true</value>
</property>
</configuration>
<main-class>gobblin.runtime.local.CliMRJobLauncher</main-class>
<arg>--jobconfig</arg>
<arg>${nameNode}/path/to/jobconfig.properties</arg>
<arg>--sysconfig</arg>
<arg>${nameNode}/path/to/sysconfig.properties</arg>
</java>
<ok to="end"/>
<error to="fail"/>
</action>
<kill name="fail">
<message>Error Message: ${wf:errorMessage(wf:lastErrorNode())}</message>
</kill>
<end name="end"/>
</workflow-app>