Run install pig from ozzie hadoop
NickName:Dheeraj Wadhwa Ask DateTime:2015-08-19T19:47:21

Run install pig from ozzie hadoop

I have installed oozie on my system and I have also installed pig. Now I want ozzie to run workflow from pig which is installed on my system not from the ozzie sharelib. Please help, as I get the following error:

2015-08-19 17:15:25,724  WARN PigActionExecutor:523 - SERVER[edb-node1] USER[hduser] GROUP[-] TOKEN[] APP[pig-wf] JOB[0000002-150819170943510-oozie-hdus-W] ACTION[0000002-150819170943510-oozie-hdus-W@pig-node] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.PigMain], exception invoking main(), java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.PigMain not found
2015-08-19 17:15:25,728  WARN PigActionExecutor:523 - SERVER[edb-node1] USER[hduser] GROUP[-] TOKEN[] APP[pig-wf] JOB[0000002-150819170943510-oozie-hdus-W] ACTION[0000002-150819170943510-oozie-hdus-W@pig-node] Launcher exception: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.PigMain not found
java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.PigMain not found
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2074)
    at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:234)
    at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
    at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:450)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
    at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.runSubtask(LocalContainerLauncher.java:370)
    at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.runTask(LocalContainerLauncher.java:295)
    at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.access$200(LocalContainerLauncher.java:181)
    at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler$1.run(LocalContainerLauncher.java:224)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.PigMain not found
    at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1980)
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2072)
    ... 13 more

Copyright Notice:Content Author:「Dheeraj Wadhwa」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/32094640/run-install-pig-from-ozzie-hadoop

Answers
Samson Scharfrichter 2015-08-19T13:50:58

You've got error messages that show clearly that you have an incomplete CLASSPATH.\n\nThat's because the pig command line does a lot of things, among which setting up silently the appropriate Pig JARs in the CLASSPATH, before invoking the PigMain Java class. But Oozie calls the Java class directly; the CLASSPATH issues are supposed to be handled either...\n\n\nby the Pig ShareLib, when active\nor by you, as a knowledgeable Java developer -- after all, it's your\nchoice not to use the default way to run Pig, so you know what you\nare doing, right?\n\n\nBefore asking your question, did you try a search on StackOverflow (and/or Google) with the following keywords? The results could prove useful.\n\n\n oozie pig custom classpath\n",


More about “Run install pig from ozzie hadoop” related questions

Run install pig from ozzie hadoop

I have installed oozie on my system and I have also installed pig. Now I want ozzie to run workflow from pig which is installed on my system not from the ozzie sharelib. Please help, as I get ...

Show Detail

install Hadoop,Pig and hive in laptop

I want to install hadoop, pig and hive in my laptop. I don't know how to install and configure hadoop,pig and hive and what software are required to do it. Please let me know exact steps require to

Show Detail

Cmd cant find Hadoop after Pig Install

After installing pig, I can't call hadoop from the command line anymore. ex: C:\Users\Andrew\Documents\Hadoop\Karung>hadoop version 'hadoop' is not recognized as an internal or external comma...

Show Detail

Cannot Run a PIG

After I install Hadoop, then I install Pig. However, I have the following problems: when i try to run a pig, it turns out there are obstacles in its log: coba@dewi-laptop:/home/dewi/Work2/pig-0.8.0-

Show Detail

In a hadoop cluster, should hive be installed on all nodes? Install Pig

I am new to Hadoop / Pig and I have just started reading the docs. There are lots of blogs on installing Hadoop in cluster mode. I know that Pig runs on top of Hadoop. My question is: Hadoop is

Show Detail

cant run pig with single node hadoop server

I have setup a VM with ubuntu. It runs hadoop as a single node. Later I installed apache pig on it. apache pig runs great with local mode, but it always prom ERROR 2999: Unexpected internal error. ...

Show Detail

Something rarely in Pig, cloudera quickstart

I do not understand because when I run a pig script in the editor, a workflow is created in ozzie and also three jobs like image , rather than simply running the script like in hive. Image entra...

Show Detail

Run time environment for Hadoop Pig

I am building a hadoop pig editor, similar like sql editor where user can write execute their pig command, and view history of commands executed.There is intelligence as well. I need to know how d...

Show Detail

Unable to load Pig in my new Hadoop installation

I am executing the following Pig commands: grunt> a = load 'hdfs://localhost:50070/user/data/file2' using PigStorage(',') as (usernames:chararray, passwords:chararray, cost:int); grunt> dum...

Show Detail

Configuring pig relation with Hadoop

I'm having troubles understanding the relation between Hadoop and Pig. I understand Pig's purpose is to hide the MapReduce pattern behind a scripting language, Pig Latin. What I don't understand i...

Show Detail