hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Mundada <anandmund...@ymail.com>
Subject YARN - Running Client with third party jars
Date Wed, 26 Feb 2014 05:22:33 GMT
Hi I want to use json jar in client code.
I tried to create runnable jar which include all required jars.
But I am getting following exception.

java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser
at distributeddb.Client.readJSON(Client.java:250)
at distributeddb.Client.getPartitionInfo(Client.java:284)
at distributeddb.Client.main(Client.java:120)
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.hadoop.util.RunJar.main(RunJar.java:212)
Caused by: java.lang.ClassNotFoundException: org.json.simple.parser.JSONParser
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 java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 8 more

How to solve this issue ?

Thanks,
Anand

Mime
View raw message