Atul Kumar

Atul Kumar

  • NA
  • 1.2k
  • 555.4k

PIG not working

May 20 2016 11:45 PM
Hi,<br /><br />I am new to Hadoop and Linux. I am using CentOS7 and I have installed Hadoop which is working fine. <br />I have installed PIG but it is not working. When I run pig command it gives me following error.<br /><br />Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant<br /> at java.lang.Class.forName0(Native Method)<br /> at java.lang.Class.forName(Class.java:274)<br /> at org.apache.hadoop.util.RunJar.run(RunJar.java:214)<br /> at org.apache.hadoop.util.RunJar.main(RunJar.java:136)<br />Caused by: java.lang.ClassNotFoundException: org.joda.time.ReadableInstant<br /> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)<br /> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)<br /> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)<br /> ... 4 more<br /><br />Please help!<br />

Answers (2)