Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C9CB18975 for ; Thu, 8 Oct 2015 16:09:57 +0000 (UTC) Received: (qmail 52333 invoked by uid 500); 8 Oct 2015 16:09:39 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 52225 invoked by uid 500); 8 Oct 2015 16:09:39 -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 52213 invoked by uid 99); 8 Oct 2015 16:09:39 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2015 16:09:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CC060C4C2F for ; Thu, 8 Oct 2015 16:09:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id df4ym0Ka6HZz for ; Thu, 8 Oct 2015 16:09:37 +0000 (UTC) Received: from mail-yk0-f177.google.com (mail-yk0-f177.google.com [209.85.160.177]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 2863E20FE0 for ; Thu, 8 Oct 2015 16:09:37 +0000 (UTC) Received: by ykec126 with SMTP id c126so16147910yke.2 for ; Thu, 08 Oct 2015 09:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=h65waX36Zw2WfG5/IJUhZ4jpcVbP12OfKEBytyotZGo=; b=Gb7NUSdxOKNy6oY6H+iMM0Xt0DE7QUWpfn02qsfHPr3Q/7J0y0xFUkXTnRIAM4iOzR LvX19iciXvfzAjkciBMuE8fHPJAPk0Nn3thNiAHZSuEFthIdV5n+7F6zI7ehQZnHUzf/ W7s2yAyE9m/P8NGbZvMMPg72bQ/CI3Gu4Ex04B5mR4dzaLmkCsd9VUNbnXAZjSVcqJ0j CB6s8+uXZTutTCc8EOyu7NdZJjSJcrrtapUv8oD0ZVidfYA0AVMA9LqAiZxkE8edCrA1 r/KtUiSLTk+LFpIuIzNRycyUQacFgVEkc/q0lVhOn5Qo8zi7mR4rlA8eVA0QozS3TNYO 4dKQ== MIME-Version: 1.0 X-Received: by 10.13.215.199 with SMTP id z190mr6350980ywd.222.1444320576512; Thu, 08 Oct 2015 09:09:36 -0700 (PDT) Received: by 10.37.59.134 with HTTP; Thu, 8 Oct 2015 09:09:36 -0700 (PDT) Date: Thu, 8 Oct 2015 11:09:36 -0500 Message-ID: Subject: Hadoop Java exception From: Odin Guillermo Caudillo Gallegos To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=94eb2c05d498e7a99a05219a16b7 --94eb2c05d498e7a99a05219a16b7 Content-Type: text/plain; charset=UTF-8 Hi. I'm doing a code to write a file on HDFS, i tried a few ways to do it, but i always get the following error: Do i need another library? i include all the libraries in the share/hadoop/common/lib folder and still getting it Exception in thread "main" java.lang.NoClassDefFoundError: org/htrace/Trace at org.apache.hadoop.hdfs.DFSOutputStream.(DFSOutputStream.java:1703) at org.apache.hadoop.hdfs.DFSOutputStream.newStreamForCreate(DFSOutputStream.java:1756) at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:1668) at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:1593) at org.apache.hadoop.hdfs.DistributedFileSystem$6.doCall(DistributedFileSystem.java:397) at org.apache.hadoop.hdfs.DistributedFileSystem$6.doCall(DistributedFileSystem.java:393) at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81) at org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:393) at org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:337) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:909) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:802) at test.HDFSMain.main(HDFSMain.java:25) Caused by: java.lang.ClassNotFoundException: org.htrace.Trace 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 12 more Thanks --94eb2c05d498e7a99a05219a16b7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi.
I'm doing a code to write a file on HDFS, i tr= ied a few ways to do it, but i always get the following error:
Do= i need another library? i include all the libraries in the share/hadoop/co= mmon/lib folder and still getting it

Exceptio= n in thread "main" java.lang.NoClassDefFoundError: org/htrace/Tra= ce
at org.apac= he.hadoop.hdfs.DFSOutputStream.<init>(DFSOutputStream.java:1703)
at org.apache.hado= op.hdfs.DFSOutputStream.newStreamForCreate(DFSOutputStream.java:1756)
=
at org.apache.hadoo= p.hdfs.DFSClient.create(DFSClient.java:1668)
at org.apache.hadoop.hdfs.DFSClient.create(D= FSClient.java:1593)
<= /span>at org.apache.hadoop.hdfs.DistributedFileSystem$6.doCall(DistributedF= ileSystem.java:397)
<= /span>at org.apache.hadoop.hdfs.DistributedFileSystem$6.doCall(DistributedF= ileSystem.java:393)
<= /span>at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLink= Resolver.java:81)
at org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileS= ystem.java:393)
at org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSys= tem.java:337)
= at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:909)
at org.apache.hadoop.fs.Fi= leSystem.create(FileSystem.java:802)
at test.HDFSMain.main(HDFSMain.java:25)
Ca= used by: java.lang.ClassNotFoundException: org.htrace.Trace
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(URLCla= ssLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppCla= ssLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java= :358)
... 12 m= ore

Thanks
--94eb2c05d498e7a99a05219a16b7--