Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Regarding oozie workflow with shell command and apache falcon

Regarding oozie workflow with shell command and apache falcon

New Contributor

Hello I am running apache falcon and oozie with shell script to run the workflow.


getting this error

ell-node] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]
2014-11-26 17:24:06,645  INFO ActionEndXCommand:543 - SERVER[] USER[ambari-qa] GROUP[-] TOKEN[] APP[shell-wf] JOB[0000020-141126162609456-oozie-oozi-W] ACTION[0000020-141126162609456-oozie-oozi-W@shell-node] ERROR is considered as FAILED for SLA
2014-11-26 17:24:06,702  INFO ActionStartXCommand:543 - SERVER[] USER[ambari-qa] GROUP[-] TOKEN[] APP[shell-wf] JOB[0000020-141126162609456-oozie-oozi-W] ACTION[0000020-141126162609456-oozie-oozi-W@fail] Start action [0000020-141126162609456-oozie-




  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

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  See the License for the specific language governing permissions and
  limitations under the License.
<workflow-app xmlns="uri:oozie:workflow:0.4" name="shell-wf">
    <start to="shell-node"/>
    <action name="shell-node">
        <shell xmlns="uri:oozie:shell-action:0.2">
            <!-- <file>/tmp/</file> -->
            <!-- <capture-output/> -->
        <ok to="end"/>
        <error to="fail"/>
    <kill name="fail">
        <message>Shell action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
    <end name="end"/>




This is the shell script



java -cp "/media/sf_ToSandbox/BigData-0.0.1-SNAPSHOT.jar:/usr/hdp/*:/usr/hdp/*" com.bigdata.falcon.StaticDataProvider


These are the feed and process and cluster information


<feed description="Raw customer email feed" name="FINALrawEmailFeed"

    <late-arrival cut-off="hours(4)"/>
        <cluster name="SprimaryCluster" type="source">
            <validity start="2014-11-21T00:00Z" end="2016-03-31T00:00Z"/>
            <retention limit="days(90)" action="delete"/>

        <location type="data"
        <location type="stats" path="/none"/>
        <location type="meta" path="/none"/>

    <ACL owner="ambari-qa" group="users" permission="0777"/>
    <schema location="/none" provider="none"/>





<?xml version="1.0" encoding="UTF-8"?>
 Hourly process, ingests raw emails from all US west email servers
<process name="IngestProcess" xmlns="uri:falcon:process:0.1">


        <cluster name="SprimaryCluster">
            <validity start="2014-11-24T09:35Z" end="2014-11-25T10:00Z"/>


        <output name="output" feed="FINALrawEmailFeed" instance="now(0,0)" />

    <workflow name="IngestWorkflow" version="2.0.0"
    engine="oozie" path="/user/gaurav123/falcon/demo/apps/ingest/fs" />

    <retry policy="periodic" delay="minutes(15)" attempts="3" />




Can you please let me know what is the issue , I have tried since long two days? but unable to run the workflow with falcon process






Re: Regarding oozie workflow with shell command and apache falcon

New Contributor

Also got this exception


2014-11-26 17:47:42,548 ERROR CompletedActionXCommand:540 - SERVER[] USER[-] GROUP[-] TOKEN[] APP[-] JOB[0000099-141126162609456-oozie-oozi-W] ACTION[0000099-141126162609456-oozie-oozi-W@user-action] XException, 
org.apache.oozie.command.CommandException: E0800: Action it is not running its in [PREP] state, action [0000099-141126162609456-oozie-oozi-W@user-action]

Re: Regarding oozie workflow with shell command and apache falcon

Master Guru
An action being unable to transition beyond PREP state indicates that the Oozie server was unable to complete pre-requisites in order to submit it. I'd recommend taking a look at the Oozie log, looking for your Oozie Job ID's most earlier entries in it (0000099-141126162609456-oozie-oozi-W), to find the actual error that is preventing its submission.

Oozie job failing

New Contributor

132792-oozie-oozi-W] ACTION[0000002-170813044132792-oozie-oozi-W@python-node] Launcher exception: Output data exceeds its limit [8192]. 


the input is a txt file with just a few lines. Overall file size is 1kb