You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by Venkat R <ve...@yahoo.com.INVALID> on 2014/06/17 00:16:18 UTC

Exception while launching Falcon pig sample job

Hi All,

We get the following error when launching a simple (from the examples) Falcon pig job. I think I don't need to manually copy the oozie jars to HDFS. 

Thanks
Venkat

--------Begin-Exception----------------

2014-06-16 14:20:17,602  WARN JavaActionExecutor:542 - USER[root] GROUP[-] TOKEN[] APP[FALCON_PROCESS_DEFAULT_pig-process] JOB[0000003-140616140425778-oozie-root-W] ACTION[0000003-140616140425778-oozie-root-W@failed-post-processing] Launcher exception: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.JavaMain not found
java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.JavaMain not found
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1895)
at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:223)
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1557)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
Caused by: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.JavaMain not found
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1801)
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1893)
... 9 more

--------End-Exception-----------------

The process.xml from the example:

------ Begin-Process.xml -----------
<process name="pig-process" xmlns="uri:falcon:process:0.1">
    <clusters>
        <cluster name="local">
            <validity start="2013-11-15T00:05Z" end="2030-11-15T01:05Z"/>
        </cluster>
    </clusters>

    <parallel>1</parallel>
    <order>FIFO</order>
    <frequency>minutes(5)</frequency>
    <timezone>UTC</timezone>

    <inputs>
        <!-- In the pig script, the input paths will be available in a variable 'inpaths' -->
        <input name="input" feed="in" start="now(0,-5)" end="now(0,-1)"/>
    </inputs>

    <outputs>
        <!-- In the pig script, the output path will be available in a variable 'outpath' -->
        <output name="output" feed="out" instance="now(0,0)"/>
    </outputs>

    <workflow engine="pig" path="/app/pig/wordcount.pig"/>
</process>
------ End-Process.xml---------------

Re: Exception while launching Falcon pig sample job

Posted by Venkat R <ve...@yahoo.com.INVALID>.
Thanks Shwetha. I'll refer to Oozie doc. I believe this is a one time setup.

Thanks,
Venkat


On Monday, June 16, 2014 9:53 PM, Shwetha GS <sh...@inmobi.com> wrote:
 


Hi Venkat,

Looks like oozie sharelib is not set-up correctly. JavaMain is part
of <oozie share lib>/oozie/oozie-sharelib-oozie-<version>.jar. Oozie
package is bundled with sharelib which contains this jar. Refer to oozie
doc for setting-up sharelib

Regards,
Shwetha



On Tue, Jun 17, 2014 at 3:46 AM, Venkat R <ve...@yahoo.com.invalid>
wrote:

> Hi All,
>
> We get the following error when launching a simple (from the examples)
> Falcon pig job. I think I don't need to manually copy the oozie jars to
> HDFS.
>
> Thanks
> Venkat
>
> --------Begin-Exception----------------
>
> 2014-06-16 14:20:17,602  WARN JavaActionExecutor:542 - USER[root] GROUP[-]
> TOKEN[] APP[FALCON_PROCESS_DEFAULT_pig-process]
> JOB[0000003-140616140425778-oozie-root-W]
> ACTION[0000003-140616140425778-oozie-root-W@failed-post-processing]
> Launcher exception: java.lang.ClassNotFoundException: Class
> org.apache.oozie.action.hadoop.JavaMain not found
> java.lang.RuntimeException: java.lang.ClassNotFoundException: Class
> org.apache.oozie.action.hadoop.JavaMain not found
> at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1895)
> at
> org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:223)
> at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
> at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342)
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1557)
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
> Caused by: java.lang.ClassNotFoundException: Class
> org.apache.oozie.action.hadoop.JavaMain not found
> at
> org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1801)
> at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1893)
> ... 9 more
>
> --------End-Exception-----------------
>
> The process.xml from the example:
>
> ------ Begin-Process.xml -----------
> <process name="pig-process" xmlns="uri:falcon:process:0.1">
>     <clusters>
>         <cluster name="local">
>             <validity start="2013-11-15T00:05Z" end="2030-11-15T01:05Z"/>
>         </cluster>
>     </clusters>
>
>     <parallel>1</parallel>
>     <order>FIFO</order>
>     <frequency>minutes(5)</frequency>
>     <timezone>UTC</timezone>
>
>     <inputs>
>         <!-- In the pig script, the input paths will be available in a
> variable 'inpaths' -->
>         <input name="input" feed="in" start="now(0,-5)" end="now(0,-1)"/>
>     </inputs>
>
>     <outputs>
>         <!-- In the pig script, the output path will be available in a
> variable 'outpath' -->
>         <output name="output" feed="out" instance="now(0,0)"/>
>     </outputs>
>
>     <workflow engine="pig" path="/app/pig/wordcount.pig"/>
> </process>
> ------ End-Process.xml---------------

-- 
_____________________________________________________________
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.

Re: Exception while launching Falcon pig sample job

Posted by Shwetha GS <sh...@inmobi.com>.
Hi Venkat,

Looks like oozie sharelib is not set-up correctly. JavaMain is part
of <oozie share lib>/oozie/oozie-sharelib-oozie-<version>.jar. Oozie
package is bundled with sharelib which contains this jar. Refer to oozie
doc for setting-up sharelib

Regards,
Shwetha


On Tue, Jun 17, 2014 at 3:46 AM, Venkat R <ve...@yahoo.com.invalid>
wrote:

> Hi All,
>
> We get the following error when launching a simple (from the examples)
> Falcon pig job. I think I don't need to manually copy the oozie jars to
> HDFS.
>
> Thanks
> Venkat
>
> --------Begin-Exception----------------
>
> 2014-06-16 14:20:17,602  WARN JavaActionExecutor:542 - USER[root] GROUP[-]
> TOKEN[] APP[FALCON_PROCESS_DEFAULT_pig-process]
> JOB[0000003-140616140425778-oozie-root-W]
> ACTION[0000003-140616140425778-oozie-root-W@failed-post-processing]
> Launcher exception: java.lang.ClassNotFoundException: Class
> org.apache.oozie.action.hadoop.JavaMain not found
> java.lang.RuntimeException: java.lang.ClassNotFoundException: Class
> org.apache.oozie.action.hadoop.JavaMain not found
> at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1895)
> at
> org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:223)
> at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
> at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342)
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1557)
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
> Caused by: java.lang.ClassNotFoundException: Class
> org.apache.oozie.action.hadoop.JavaMain not found
> at
> org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1801)
> at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1893)
> ... 9 more
>
> --------End-Exception-----------------
>
> The process.xml from the example:
>
> ------ Begin-Process.xml -----------
> <process name="pig-process" xmlns="uri:falcon:process:0.1">
>     <clusters>
>         <cluster name="local">
>             <validity start="2013-11-15T00:05Z" end="2030-11-15T01:05Z"/>
>         </cluster>
>     </clusters>
>
>     <parallel>1</parallel>
>     <order>FIFO</order>
>     <frequency>minutes(5)</frequency>
>     <timezone>UTC</timezone>
>
>     <inputs>
>         <!-- In the pig script, the input paths will be available in a
> variable 'inpaths' -->
>         <input name="input" feed="in" start="now(0,-5)" end="now(0,-1)"/>
>     </inputs>
>
>     <outputs>
>         <!-- In the pig script, the output path will be available in a
> variable 'outpath' -->
>         <output name="output" feed="out" instance="now(0,0)"/>
>     </outputs>
>
>     <workflow engine="pig" path="/app/pig/wordcount.pig"/>
> </process>
> ------ End-Process.xml---------------

-- 
_____________________________________________________________
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.