Return-Path: X-Original-To: apmail-htrace-dev-archive@minotaur.apache.org Delivered-To: apmail-htrace-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 178EB1831E for ; Thu, 8 Oct 2015 19:36:46 +0000 (UTC) Received: (qmail 80635 invoked by uid 500); 8 Oct 2015 19:36:43 -0000 Delivered-To: apmail-htrace-dev-archive@htrace.apache.org Received: (qmail 80569 invoked by uid 500); 8 Oct 2015 19:36:43 -0000 Mailing-List: contact dev-help@htrace.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@htrace.incubator.apache.org Delivered-To: mailing list dev@htrace.incubator.apache.org Received: (qmail 80427 invoked by uid 99); 8 Oct 2015 19:36:42 -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 19:36:42 +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 44980C4D97 for ; Thu, 8 Oct 2015 19:36:42 +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-eu-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 cl28kc-G-zbd for ; Thu, 8 Oct 2015 19:36:41 +0000 (UTC) Received: from mail-yk0-f182.google.com (mail-yk0-f182.google.com [209.85.160.182]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id D593C27DC7 for ; Thu, 8 Oct 2015 19:36:40 +0000 (UTC) Received: by ykba192 with SMTP id a192so55014563ykb.3 for ; Thu, 08 Oct 2015 12:36:40 -0700 (PDT) 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=GN28hFr5JoVHKoglHe4LqHb0yCj8pudzcps8/zb6eTo=; b=05B1YPUZRbqpMf/5ELmQqy1cOnQ9i744BQfXkzRLz0REw0G4frdIGVLRuEW8/T70DO 5tqMJbkJnBGwgp43JhAcs86cIiA91O5l8Puk2Pzzk6B6zFXQyEymTVc+cr/WB6V2PJhs PxVNWaj+UpwHD0kFNxoxk02oeG3TZ1ICdw//GOn+KSTp+lZLcAdPoSSYdCETuv4lFiSI /vfLBCdbHmToZFwDZS+YpWhhK2XCsLSAA1FFfq9zH26OvW/2Vt/eDNUmddw3PBGob6gj TBm/P7MVhLSsQfrOFMn3LEdtsj8GZuDYWi7Gor/IQbCSLdeKMxTnZjmUq8s3yH/5tTJ+ wOWg== MIME-Version: 1.0 X-Received: by 10.129.153.71 with SMTP id q68mr6438034ywg.327.1444332999905; Thu, 08 Oct 2015 12:36:39 -0700 (PDT) Received: by 10.37.59.134 with HTTP; Thu, 8 Oct 2015 12:36:39 -0700 (PDT) In-Reply-To: References: <20783_1444325541_t98HWKoH022398_CAKFCR+dXx7FLYJ3Oz+ReQSbxy_3HdDa9RO_s62REMhQQqUCLzw@mail.gmail.com> Date: Thu, 8 Oct 2015 14:36:39 -0500 Message-ID: Subject: Re: Java exception From: Odin Guillermo Caudillo Gallegos To: dev@htrace.incubator.apache.org Content-Type: multipart/alternative; boundary=94eb2c0bcc2065b49705219cfbd7 --94eb2c0bcc2065b49705219cfbd7 Content-Type: text/plain; charset=UTF-8 Hi. Already solved with maven and tested on the project without maven, it was htrace-core-3.0.4.jar the one that was missing. Thanks! 2015-10-08 14:01 GMT-05:00 Colin P. McCabe : > Hi Odin, > > org/htrace/Trace is a class from the pre-Apache version of HTrace. It > sounds like the HTrace jar you need is not 3.1.0-incubating, but > perhaps 3.0.4 (or even some older version)? > > Try finding the source code for the version of Hadoop you are using > and running "mvn dependency:tree" > > best, > Colin > > On Thu, Oct 8, 2015 at 10:32 AM, Odin Guillermo Caudillo Gallegos > wrote: > > Hi, i'm building a code to write files on hdfs, but it gives me the > > following error: > > > > 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:23) > > 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 > > > > I already have the htrace-core-3.1.0-incubating.jar in my external jars, > > but it appears that isnt't looking for the apache one but a different > > version. > > I had included all the jars in the hadoop library folder but no success. > > Thanks > --94eb2c0bcc2065b49705219cfbd7--