<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Oozie work flow - PIG action failed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107482#M15956</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2038/sushil61.html" nodeid="2038"&gt;@Sushil Saxena&lt;/A&gt;&lt;P&gt;right click pig and refresh client configs. As far as Falcon not picking up Oozie configs, have you confirmed that there are no stale services in existence? &lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2016 01:29:54 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-01-23T01:29:54Z</dc:date>
    <item>
      <title>Oozie work flow - PIG action failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107477#M15951</link>
      <description>&lt;P&gt;Hi I am trying to run a PIG action in oozie workflow and getting this error:&lt;/P&gt;&lt;PRE&gt;Pig Stack Trace
---------------
ERROR 2998: Unhandled internal error. org/apache/hadoop/hive/shims/ShimLoader

java.lang.NoClassDefFoundError: org/apache/hadoop/hive/shims/ShimLoader
	at org.apache.hadoop.hive.conf.HiveConf$ConfVars.&amp;lt;clinit&amp;gt;(HiveConf.java:368)
	at org.apache.hive.hcatalog.pig.PigHCatUtil.getHCatServerUri(PigHCatUtil.java:134)
	at org.apache.hive.hcatalog.pig.HCatLoader.getSchema(HCatLoader.java:217)
	at org.apache.pig.newplan.logical.relational.LOLoad.getSchemaFromMetaData(LOLoad.java:175)
	at org.apache.pig.newplan.logical.relational.LOLoad.&amp;lt;init&amp;gt;(LOLoad.java:89)
	at org.apache.pig.parser.LogicalPlanBuilder.buildLoadOp(LogicalPlanBuilder.java:901)
	at org.apache.pig.parser.LogicalPlanGenerator.load_clause(LogicalPlanGenerator.java:3568)
	at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1625)
	at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:1102)
	at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:560)
	at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:421)
	at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:191)
	at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1735)
	at org.apache.pig.PigServer$Graph.access$000(PigServer.java:1443)
	at org.apache.pig.PigServer.parseAndBuild(PigServer.java:387)
	at org.apache.pig.PigServer.executeBatch(PigServer.java:412)
	at org.apache.pig.PigServer.executeBatch(PigServer.java:398)
	at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:171)
	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:234)
	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)
	at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)
	at org.apache.pig.Main.run(Main.java:502)
	at org.apache.pig.PigRunner.run(PigRunner.java:49)
	at org.apache.oozie.action.hadoop.PigMain.runPigJob(PigMain.java:288)
	at org.apache.oozie.action.hadoop.PigMain.run(PigMain.java:231)
	at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:47)
	at org.apache.oozie.action.hadoop.PigMain.main(PigMain.java:76)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:236)
	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
	at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
	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:1657)
	at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.shims.ShimLoader
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 40 more
================================================================================
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.PigMain], exit code [2]&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jan 2016 07:27:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107477#M15951</guid>
      <dc:creator>sushil61</dc:creator>
      <dc:date>2016-01-22T07:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie work flow - PIG action failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107478#M15952</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2038/sushil61.html" nodeid="2038"&gt;@Sushil Saxena&lt;/A&gt;&lt;P&gt;I have a fix documented in this &lt;A href="https://community.hortonworks.com/content/idea/2391/pig-and-hive-actions-should-include-hive-hcatalog.html"&gt;thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 07:40:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107478#M15952</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-22T07:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie work flow - PIG action failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107479#M15953</link>
      <description>&lt;P&gt;Please let me know which one I need to set:&lt;/P&gt;&lt;P&gt;oozie.action.sharelib.for.pig=pig,hcatalog &lt;/P&gt;&lt;P&gt;oozie.action.sharelib.for.pig=hive,pig,hcatalog &lt;/P&gt;&lt;P&gt;
oozie.action.sharelib.for.hive=hive,hcatalog,sqoop&lt;/P&gt;&lt;P&gt;Also where I need to set: In Job Config or Hive-site.xml as custom property.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 09:17:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107479#M15953</guid>
      <dc:creator>sushil61</dc:creator>
      <dc:date>2016-01-22T09:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie work flow - PIG action failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107480#M15954</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2038/sushil61.html" nodeid="2038"&gt;@Sushil Saxena&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I'll make it easy for you, just copy this workflow from my &lt;A href="https://github.com/dbist/oozie/tree/master/apps/hcatalog"&gt;github&lt;/A&gt; page it has everything you need to run on sandbox, on your own environment, copy hive-site.xml from your cluster to lib folder. To answer your question, you choose the packages depending on what you're using, if you're using hcatalog you need pig,hcatalog and hive, if you use sqoop, add sqoop, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 09:31:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107480#M15954</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-22T09:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie work flow - PIG action failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107481#M15955</link>
      <description>&lt;P&gt;It works fine when we made changes in workflow.xml for oozie 4.2. But when we are running Falcon process and then system will create the oozie workflow. At PIG action, it got failed with ShimsLoader error. Actually falcon is not picking changes made in oozie-site.xml: &lt;/P&gt;&lt;P&gt;oozie.action.sharelib.for.pig=pig,hcatalog,hive&lt;/P&gt;&lt;P&gt;I also tried restarting Falcon, OOzie, Hive bit still the not picking up the above property.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 01:01:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107481#M15955</guid>
      <dc:creator>sushil61</dc:creator>
      <dc:date>2016-01-23T01:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie work flow - PIG action failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107482#M15956</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2038/sushil61.html" nodeid="2038"&gt;@Sushil Saxena&lt;/A&gt;&lt;P&gt;right click pig and refresh client configs. As far as Falcon not picking up Oozie configs, have you confirmed that there are no stale services in existence? &lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 01:29:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107482#M15956</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-23T01:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie work flow - PIG action failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107483#M15957</link>
      <description>&lt;P&gt;
	&lt;A href="https://community.hortonworks.com/users/2038/sushil61.html"&gt;Sushil Saxena&lt;/A&gt;: Regarding issue in Falcon there is &lt;A href="https://issues.apache.org/jira/browse/FALCON-1787"&gt;FALCON-1787&lt;/A&gt; jira created.&lt;/P&gt;&lt;P&gt;
	If you are running Falcon process, updating "oozie.action.sharelib.for.pig" in Oozie-site.xml will not help. Falcon generates the pig action at the run time &amp;amp; generates the workflow, it uses pig-action.xml defined in Falcon codebase. pig-action.xml that Falcon uses does not have hive in the share lib config "oozie.action.sharelib.for.pig".&lt;/P&gt;&lt;P&gt;
	Workflow action configuration generated by Falcon is overriding the one defined in ooze-site.xml.&lt;/P&gt;&lt;P&gt;
	Few work arounds:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
	
&lt;P&gt;
		1&amp;gt; In the process entity definition add new custom property. Resubmit the process.
	&lt;/P&gt;&lt;P&gt;
		    &amp;lt;properties&amp;gt;
        &amp;lt;property name="oozie.action.sharelib.for.pig" value="hive,pig,hcatalog"/&amp;gt;
    &amp;lt;/properties&amp;gt;
	&lt;/P&gt;&lt;P&gt;
		2&amp;gt; Update pig-action.xml to have hive in the share lib config and repackage falcon-oozie-adaptor-&amp;lt;version&amp;gt;.jar and replace jar at "/usr/hdp/current/falcon-server/webapp/falcon/WEB-INF/lib” and restart Falcon
	&lt;/P&gt;&lt;P&gt;
		3&amp;gt; If you have Falcon code downloaded then update pig-action.xml at oozie/src/main/resources/action/process/pig-action.xml and then build falcon and reinstall it
	&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:30:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-work-flow-PIG-action-failed/m-p/107483#M15957</guid>
      <dc:creator>sramesh</dc:creator>
      <dc:date>2016-01-28T09:30:57Z</dc:date>
    </item>
  </channel>
</rss>

