Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B9C4510D4E for ; Sat, 1 Mar 2014 07:12:31 +0000 (UTC) Received: (qmail 75582 invoked by uid 500); 1 Mar 2014 07:12:24 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 74795 invoked by uid 500); 1 Mar 2014 07:12:14 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 74788 invoked by uid 99); 1 Mar 2014 07:12:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Mar 2014 07:12:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of raofengyun@gmail.com designates 209.85.220.179 as permitted sender) Received: from [209.85.220.179] (HELO mail-vc0-f179.google.com) (209.85.220.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Mar 2014 07:12:06 +0000 Received: by mail-vc0-f179.google.com with SMTP id lh14so1736466vcb.10 for ; Fri, 28 Feb 2014 23:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=INY0JQJ+xDsExmXfn752DW1QWODihAUFPThnV58OJh8=; b=TFu+D5z12W2h2TGWYMGJFGyDKKENRTmepWpAWxEa+HE7bdSCdEZzpjTeAz6Zd5/Kin QvsH0SuzBbpPigYPidP97okA4LKw3e7KhWXC3ofvaktMNHYo6JchDEmWrLgaYFlec/bE 9/OovC3olqIeuJFJOhUI5zWTDeQ7e2xN4p5/psDH8U/zTLRoShuBzoQAEojB/PKhkn6E 2Fz+Iz5JjG03ajNEVxS1yqwrTaEDblkGu4vj/qsaz6zFGFID4ekwh3f3ayiVZP7frvh3 r7YLbg+F6rJWfssTx6T07xwYtARP0SBoR2MhuCrfpEKHfagT7Th6uPHstfdNAT1RsvqU JnhA== MIME-Version: 1.0 X-Received: by 10.58.94.195 with SMTP id de3mr210587veb.39.1393657905911; Fri, 28 Feb 2014 23:11:45 -0800 (PST) Received: by 10.220.232.68 with HTTP; Fri, 28 Feb 2014 23:11:45 -0800 (PST) In-Reply-To: <1393392153.58776.YahooMailNeo@web163106.mail.bf1.yahoo.com> References: <1393392153.58776.YahooMailNeo@web163106.mail.bf1.yahoo.com> Date: Sat, 1 Mar 2014 15:11:45 +0800 Message-ID: Subject: Re: YARN - Running Client with third party jars From: Fengyun RAO To: user@hadoop.apache.org, Anand Mundada Content-Type: multipart/alternative; boundary=047d7ba96cf46b9d2404f386444a X-Virus-Checked: Checked by ClamAV on apache.org --047d7ba96cf46b9d2404f386444a Content-Type: text/plain; charset=ISO-8859-1 read this: http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven 2014-02-26 13:22 GMT+08:00 Anand Mundada : > 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 > > --047d7ba96cf46b9d2404f386444a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


2014-02= -26 13:22 GMT+08:00 Anand Mundada <anandmundada@ymail.com>:
Hi I want to use json jar in client code.
I tried to create runna= ble jar which include all required jars.
But I am getting followi= ng exception.

java.lang.NoClassDefFoundError: org/json/simple/parser/JSONParser
at distributedd= b.Client.readJSON(Client.java:250)
at distributeddb.Client.= getPartitionInfo(Client.java:284)
= at distributeddb.Client.main(Client.java:120)
at sun.reflect.NativeMethodAccesso= rImpl.invoke0(Native Method)
at sun.reflect.NativeMet= hodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.uti= l.RunJar.main(RunJar.java:212)
Caused by: java.lang.ClassNotFoundExce= ption: org.json.simple.parser.JSONParser
at java.net.URLClassLoader$1.run(URLClassLoade= r.java:366)
at java.net.URLClassLoad= er$1.run(URLClassLoader.java:355)
= at java.security.AccessController.doPrivileged(Native Method)=
at java.net.URLCla= ssLoader.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 ?
<= br>
Thanks,
Anand


--047d7ba96cf46b9d2404f386444a--