0

I am trying to create a workflow with just one pig action, I have all the jars available in the path /user/oozie/share/lib/lib_* and also I am defining the path of hive-site.xml in the job nodes.

But the job fails saying :

could not resolve org.apache.hcatalog.pig.hcatloader using imports

Please help

Immanuel Fredrick
  • 508
  • 3
  • 9
  • 20

1 Answers1

3

You need to use org.apache.hive.hcatalog.pig.HCatLoader instead of org.apache.hcatalog.pig.hcatloader from the link

CandleCoder
  • 1,387
  • 4
  • 21
  • 45
  • Hi Thanks, But am running into another one Error : java.lang.NoClassDefFoundError: com/facebook/fb303/FacebookS Note : I am not using any customer UDFS here – Immanuel Fredrick Feb 24 '16 at 11:51
  • By any chance do you have more than different versions of thrift and libthrift hanging around? It sounds like the classes are being generated with one version of thrift, but trying to use a different version of libthrift at runtime. – CandleCoder Feb 24 '16 at 11:53
  • The above error has been resolved or not (Asked in the question) – CandleCoder Feb 24 '16 at 11:54
  • Yes, The above issue got resolved after upgrading my java version.. Previously my java version was 1.6 in all the nodes. I have upgraded it to java 1.8. – Immanuel Fredrick Feb 24 '16 at 13:17
  • Accept answer if it helped u...It will help others in future – CandleCoder Feb 24 '16 at 14:28
  • One more thing to clarify is that in older version of hadoop cluster this "org.apache.hcatalog.pig.hcatloader" was working fine. Is it Because of cluster upgradation that i had to change to "org.apache.hive.hcatalog.pig.HCatLoader" – Immanuel Fredrick Feb 25 '16 at 05:27