Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7109C108E9 for ; Thu, 27 Nov 2014 06:21:16 +0000 (UTC) Received: (qmail 88607 invoked by uid 500); 27 Nov 2014 06:21:16 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 88569 invoked by uid 500); 27 Nov 2014 06:21:16 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 88556 invoked by uid 99); 27 Nov 2014 06:21:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2014 06:21:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shwetha.gs@inmobi.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-wg0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2014 06:21:11 +0000 Received: by mail-wg0-f49.google.com with SMTP id x12so5544449wgg.36 for ; Wed, 26 Nov 2014 22:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inmobi.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ey3IwL0sk3+zf/5pjfPJnxcti+lAkIGwfNnS5LQ/anU=; b=psLxKQ1z/LqqnM/C8svqGE3w89jIhRFypnn7X4+36SIP3XZHQAkU7hNOVWhZcEQtE8 KCDw5mZCW8rBgZen7JxzTqH3H/SwucZzPNV54QMr+iZJiblj03yfK9A1GuZVxJjdT4ll xV2xRjkWuWk8yaCKlZfNvYxwC6eu8fKNltAJ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ey3IwL0sk3+zf/5pjfPJnxcti+lAkIGwfNnS5LQ/anU=; b=CsdI6LLRHe9eNebBnLpYvv/Vh+PeRboIunUzvCFemr2ZS41yyL3jYMxl9bvPqpQTyN n47S9y9/w+CzBJgwlQ0X12jhbEcfFhd6eXxX/ZTD0xgvTBJhV1EU07LgSGqgbLl+8lLp /CZb+4+Luhmn4+j4sA0OG6k7gNX2bHqb17iR16p2ItWyfvd8FDfpi0Pgcl1S1n1WcNWF 54S6e3DKtbaU6aetOCrJDA3NSLsNYE8J0IltwM9q0i3Uqunp5NqbG3blExdhKE9mIfMD lnci4+7q6pX/th3XGuOK8sV/bMiHACt/o5LXNdF8yiAAoW8sM8dgmDPVZC8nW5UbQ/IV YwYg== X-Gm-Message-State: ALoCoQkzGMrDo4t3bEUB6xW3Qtp77P/zDC66Gv3Wy0v8YB2Dy0IvDepy99u+gf/9J6ipAvOzXziOMIxgdEADUwSwuhNxFuxs4iVAVjoO1RYI8PSia1L0nu/TyfGFc+9EtX56huJIGtB+ MIME-Version: 1.0 X-Received: by 10.194.178.231 with SMTP id db7mr54113322wjc.112.1417069205604; Wed, 26 Nov 2014 22:20:05 -0800 (PST) Received: by 10.181.12.77 with HTTP; Wed, 26 Nov 2014 22:20:05 -0800 (PST) In-Reply-To: References: Date: Thu, 27 Nov 2014 11:50:05 +0530 Message-ID: Subject: Re: Need help for the problem that i faced From: Shwetha GS To: "dev@falcon.incubator.apache.org" Content-Type: multipart/alternative; boundary=089e01419fc09f7c6d0508d12202 X-Virus-Checked: Checked by ClamAV on apache.org --089e01419fc09f7c6d0508d12202 Content-Type: text/plain; charset=UTF-8 2 ways of doing: 1. Falcon process exposes workflow lib(just like workflow path) which should contain the path to the directory that contains the jar example: 2. If the workflow is in /workflow.xml, the jar should be in /lib/ directory On Thu, Nov 27, 2014 at 11:42 AM, Gaurav Agarwal wrote: > Apart from this I have two more questions? > > 1. How to invoke java class from a workflow ,where to keep the jar in which > the class present?I kept the jar at the same location where the workflow is > present still got the same error. ClassNotfound exception > > Thanks > > On Thu, Nov 27, 2014 at 11:39 AM, Gaurav Agarwal > wrote: > > > Srikanth > > > > What do we mean by that in oozie context? > > > > Thanks > > > > On Thu, Nov 27, 2014 at 11:36 AM, Srikanth Sundarrajan < > > sriksun@hotmail.com> wrote: > > > >> Looks like the script ingest.sh is returning non-zero exit code. > >> > >> Regards > >> Srikanth Sundarrajan > >> > >> > Date: Thu, 27 Nov 2014 11:31:30 +0530 > >> > Subject: Re: Need help for the problem that i faced > >> > From: gzagarwal@gmail.com > >> > To: dev@falcon.incubator.apache.org > >> > > >> > These are the log > >> > > >> > 2014-11-27 05:37:02,726 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@:start:] Start action > >> > [0000129-141126162609456-oozie-oozi-W@:start:] with user-retry state > : > >> > userRetryCount [0], userRetryMax [0], userRetryInterval [10] > >> > 2014-11-27 05:37:02,727 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@:start:] > >> > [***0000129-141126162609456-oozie-oozi-W@:start:***]Action > status=DONE > >> > 2014-11-27 05:37:02,727 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@:start:] > >> > [***0000129-141126162609456-oozie-oozi-W@:start:***]Action updated in > >> DB! > >> > 2014-11-27 05:37:03,151 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@shell-node] Start action > >> > [0000129-141126162609456-oozie-oozi-W@shell-node] with user-retry > >> state : > >> > userRetryCount [0], userRetryMax [0], userRetryInterval [10] > >> > 2014-11-27 05:37:05,377 INFO ShellActionExecutor:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@shell-node] checking > >> action, > >> > hadoop job ID [job_1417019189193_0117] status [RUNNING] > >> > 2014-11-27 05:37:05,378 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@shell-node] > >> > [***0000129-141126162609456-oozie-oozi-W@shell-node***]Action > >> > status=RUNNING > >> > 2014-11-27 05:37:05,379 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@shell-node] > >> > [***0000129-141126162609456-oozie-oozi-W@shell-node***]Action updated > >> in > >> > DB! > >> > 2014-11-27 05:37:49,260 INFO CallbackServlet:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[-] GROUP[-] TOKEN[-] APP[-] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@shell-node] callback for > >> action > >> > [0000129-141126162609456-oozie-oozi-W@shell-node] > >> > 2014-11-27 05:37:50,753 INFO ShellActionExecutor:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@shell-node] action > >> completed, > >> > external ID [job_1417019189193_0117] > >> > 2014-11-27 05:37:50,761 WARN ShellActionExecutor:546 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@shell-node] Launcher > ERROR, > >> > reason: Main class [org.apache.oozie.action.hadoop.ShellMain], exit > code > >> > [1] > >> > 2014-11-27 05:37:50,865 INFO ActionEndXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@shell-node] ERROR is > >> considered > >> > as FAILED for SLA > >> > 2014-11-27 05:37:50,941 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@fail] Start action > >> > [0000129-141126162609456-oozie-oozi-W@fail] with user-retry state : > >> > userRetryCount [0], userRetryMax [0], userRetryInterval [10] > >> > 2014-11-27 05:37:50,942 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@fail] > >> > [***0000129-141126162609456-oozie-oozi-W@fail***]Action status=DONE > >> > 2014-11-27 05:37:50,942 INFO ActionStartXCommand:543 - SERVER[ > >> > sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] > APP[shell-wf] > >> > JOB[0000129-141126162609456-oozie-oozi-W] > >> > ACTION[0000129-141126162609456-oozie-oozi-W@fail] > >> > [***0000129-141126162609456-oozie-oozi-W@fail***]Action updated in > DB! > >> > > >> > On Thu, Nov 27, 2014 at 10:25 AM, Shwetha GS > >> wrote: > >> > > >> > > ingest.sh > >> > > Try using absolute path. > >> > > > >> > > None of the logs imply any error. Can you attach all the oozie logs > >> for the > >> > > workflow? > >> > > > >> > > > >> > > > >> > > > >> > > On Thu, Nov 27, 2014 at 7:50 AM, Gaurav Agarwal < > gzagarwal@gmail.com> > >> > > wrote: > >> > > > >> > > > 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[sandbox.hortonworks.com ] > >> > > > 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[sandbox.hortonworks.com ] > >> > > > 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-* > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > *Workflow* > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > ${jobTracker} > >> > > > ${nameNode} > >> > > > > >> > > > > >> > > > mapred.job.queue.name > >> > > > ${queueName} > >> > > > > >> > > > > >> > > > ingest.sh > >> > > > ${feedInstancePaths} > >> > > > ${wf:appPath()}/ingest.sh#ingest.sh > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > Shell action failed, error > >> > > > message[${wf:errorMessage(wf:lastErrorNode())}] > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > This is the shell script > >> > > > > >> > > > > >> > > > > >> > > > #!/bin/bash > >> > > > > >> > > > > >> > > > java -cp > >> > > > > >> > > > >> > "/media/sf_ToSandbox/BigData-0.0.1-SNAPSHOT.jar:/usr/hdp/2.2.0.0-913/sqoop/lib/*:/usr/hdp/2.2.0.0-913/hadoop/lib/*" > >> > > > com.bigdata.falcon.StaticDataProvider > >> > > > > >> > > > > >> > > > > >> > > > These are the feed and process and cluster information > >> > > > > >> > > > > >> > > > > >> > > > name="FINALrawEmailFeed" > >> > > > xmlns="uri:falcon:feed:0.1"> > >> > > > > >> > > > > >> externalSystem=USWestEmailServers,classification=secure > >> > > > churnAnalysisDataPipeline > >> > > > minutes(3) > >> > > > > >> > > > > >> > > > > >> > > > >> end="2016-03-31T00:00Z"/> > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > >> > > > > >> > > > > >> > > > > >> > > > >> > path="/user/gaurav123/falcon/demo/primary/input/enron/${YEAR}-${MONTH}-${DAY}-${HOUR}"/> > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > *Process* > >> > > > > >> > > > *-----------* > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > >> > pipeline=churnAnalysisDataPipeline,owner=ETLGroup,externalSystem=USWestEmailServers > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > >> end="2014-11-25T10:00Z"/> > >> > > > > >> > > > > >> > > > > >> > > > 1 > >> > > > FIFO > >> > > > minutes(3) > >> > > > > >> > > > > >> > > > >> > > instance="now(0,0)" > >> > > > /> > >> > > > > >> > > > > >> > > > >> > > > engine="oozie" > >> path="/user/gaurav123/falcon/demo/apps/ingest/fs" /> > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > 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 > >> > > > > >> > > > Also got this exception > >> > > > > >> > > > 2014-11-26 17:47:42,548 ERROR CompletedActionXCommand:540 - > >> > > > SERVER[sandbox.hortonworks.com] 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] > >> > > > > >> > > > >> > > -- > >> > > _____________________________________________________________ > >> > > The information contained in this communication is intended solely > >> for the > >> > > use of the individual or entity to whom it is addressed and others > >> > > authorized to receive it. It may contain confidential or legally > >> privileged > >> > > information. If you are not the intended recipient you are hereby > >> notified > >> > > that any disclosure, copying, distribution or taking any action in > >> reliance > >> > > on the contents of this information is strictly prohibited and may > be > >> > > unlawful. If you have received this communication in error, please > >> notify > >> > > us immediately by responding to this email and then delete it from > >> your > >> > > system. The firm is neither liable for the proper and complete > >> transmission > >> > > of the information contained in this communication nor for any delay > >> in its > >> > > receipt. > >> > > > >> > >> > > > > > -- _____________________________________________________________ The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. The firm is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. --089e01419fc09f7c6d0508d12202--