Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 49869 invoked from network); 9 Jul 2009 21:51:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jul 2009 21:51:25 -0000 Received: (qmail 27216 invoked by uid 500); 9 Jul 2009 21:51:35 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 27154 invoked by uid 500); 9 Jul 2009 21:51:34 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 27144 invoked by uid 99); 9 Jul 2009 21:51:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 21:51:34 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ryanobjc@gmail.com designates 209.85.217.215 as permitted sender) Received: from [209.85.217.215] (HELO mail-gx0-f215.google.com) (209.85.217.215) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 21:51:25 +0000 Received: by gxk11 with SMTP id 11so730367gxk.5 for ; Thu, 09 Jul 2009 14:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=pYuPQr8euCMdkBRz7eDW/8KHXNNQHXT5PQ4bsJfdPuY=; b=i5h6IXIEZFnC2V9k1FRNr5eVFCuVtHYEjhPVQyOEhKv/w9GTbTILwV9lv22FpPvWoL LamUq9E2U0mS//dt00cInO9BBR1YcLBmXvcch+gmeeWbZyZIwUsOefsmf2NF5Aut16pn 3D08FK0QiQYr0scdy9AxUQJLG+gxsuFurG724= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=oqbxQy0VpUkWJW4eJh5T4VK9ob9yULRIYiyNzvdpFw4gpUIY5aSIRgAb4ex1Q61iK7 /wqLMsId2/11GHiWD7wZxal7bDkSazXM2sR7EFFXBOtU1keuBGnXlAN4LsX7f/7kIs6k IVIHjk7cqJ2GUVhaUalzsCHLoCXs39vBXr1fE= MIME-Version: 1.0 Received: by 10.150.192.4 with SMTP id p4mr1970623ybf.122.1247176264416; Thu, 09 Jul 2009 14:51:04 -0700 (PDT) In-Reply-To: <1e7471d50907091437j764408a5ud9e1b988280ee61@mail.gmail.com> References: <1e7471d50907091415v18ba1112sf9b774ccc93ce241@mail.gmail.com> <78568af10907091422h3ea4a1bcncb330ebe93f9a8b0@mail.gmail.com> <78568af10907091423p607c4241rdffa6d0217d6b03@mail.gmail.com> <1e7471d50907091437j764408a5ud9e1b988280ee61@mail.gmail.com> Date: Thu, 9 Jul 2009 14:51:04 -0700 Message-ID: <78568af10907091451w4d4e827es3be1c7d6c61969db@mail.gmail.com> Subject: Re: ClassLoader issue - class not found yet classloader can load it From: Ryan Rawson To: saptarshi.guha@gmail.com Cc: hbase-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=000e0cd6ac10367cee046e4cdaea X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd6ac10367cee046e4cdaea Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit The hbase code calls either classforname or uses the system implied classloader when it refers to other classes. Maybe there is something there? Its using the default java classloader (which doesn't have your classpath) maybe? On Jul 9, 2009 2:38 PM, "Saptarshi Guha" wrote: Hello, Thanks for the tip. I have added all the jar files in HBASE_HOME and HBASE_HOME/lib and HBASE_HOME/conf is in the classpath. Going through the code of Configuration.java and HBaseConfiguration.java, the latter is a simple subclass and setClassLoader replaces the classloader with a user supplied one. This classloader is then used to things like Class.forName(...) I didn't understand the bit about recursive class loaders, there being only one right? Thanks again for the information Cheers Saptarshi On Thu, Jul 9, 2009 at 2:23 PM, Ryan Rawson wrote: > You need to include every... --000e0cd6ac10367cee046e4cdaea--