Looks like pig isn't able to find the hadoop jars. Could you try putting
hadoop on the system i.e. have hadoop command in the environment path.

Regards,
Praveen

On Thu, Dec 25, 2014 at 4:17 PM, Venkat Ramakrishnan <
venkat.archit...@gmail.com> wrote:

> Hi all,
>
> I am getting the following error while running pig in local mode (pig -X
> local) :
>
> The system cannot find the path specified.
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> at org.apache.pig.Main.<clinit>(Main.java:106)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.logging.LogFactory
> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 1 more
> Exception in thread "Thread-0" java.lang.NoClassDefFoundError:
> org/apache/hadoop/fs/LocalFileSystem
> at org.apache.pig.Main$1.run(Main.java:101)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.hadoop.fs.LocalFileSystem
> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 1 more
> Exception in thread "main"
>
>
> Can someone tell me how to resolve this?
>
> Thanks,
> Venkat.
>

Reply via email to