Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 74226 invoked from network); 17 Feb 2009 15:29:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 15:29:25 -0000 Received: (qmail 9965 invoked by uid 500); 17 Feb 2009 15:29:18 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 9914 invoked by uid 500); 17 Feb 2009 15:29:18 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 9903 invoked by uid 99); 17 Feb 2009 15:29:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 07:29:18 -0800 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [192.6.10.60] (HELO tobor.hpl.hp.com) (192.6.10.60) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 15:29:08 +0000 Received: from localhost (localhost [127.0.0.1]) by tobor.hpl.hp.com (Postfix) with ESMTP id E79ABB7E2D for ; Tue, 17 Feb 2009 15:28:47 +0000 (GMT) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com Received: from tobor.hpl.hp.com ([127.0.0.1]) by localhost (tobor.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Qad+qnhiY0C3 for ; Tue, 17 Feb 2009 15:28:47 +0000 (GMT) Received: from 0-imap-br1.hpl.hp.com (0-imap-br1.hpl.hp.com [16.25.144.60]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tobor.hpl.hp.com (Postfix) with ESMTPS id 22A16B7CC6 for ; Tue, 17 Feb 2009 15:28:46 +0000 (GMT) MailScanner-NULL-Check: 1235489296.86999@stfNQMEoSPWlPbujSxE0nQ Received: from [16.25.171.118] (morzine.hpl.hp.com [16.25.171.118]) by 0-imap-br1.hpl.hp.com (8.14.1/8.13.4) with ESMTP id n1HFSGlq019654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 17 Feb 2009 15:28:16 GMT Message-ID: <499AD78F.2030709@apache.org> Date: Tue, 17 Feb 2009 15:28:15 +0000 From: Steve Loughran User-Agent: Thunderbird 2.0.0.19 (X11/20081209) MIME-Version: 1.0 To: core-user@hadoop.apache.org Subject: Re: HADOOP-2536 supports Oracle too? References: <35a22e220902031817s30eb8426y2b6e273470966b9a@mail.gmail.com> <4989B09C.7000207@gmail.com> <35a22e220902041026pbdcc2f6q2a447b94daf3daa2@mail.gmail.com> <35a22e220902041453g49d0d399r52348138c98daa56@mail.gmail.com> <498AAF47.6090505@gmail.com> <22032715.post@talk.nabble.com> <0B31F7D5-44DD-4A4E-B2F0-BE82B6DB54C2@avafan.com> <22058047.post@talk.nabble.com> In-Reply-To: <22058047.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: n1HFSGlq019654 X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org sandhiya wrote: > Hi, > I'm using postgresql and the driver is not getting detected. How do you run > it in the first place? I just typed > > bin/hadoop jar /root/sandy/netbeans/TableAccess/dist/TableAccess.jar > > at the terminal without the quotes. I didnt copy any files from my local > drives into the Hadoop file system. I get an error like this : > > java.lang.RuntimeException: java.lang.ClassNotFoundException: > org.postgresql.Driver > > and then the complete stack trace.... > > Am i doing something wrong? > I downloaded a jar file for postgresql jdbc support and included it in my > Libraries folder (I'm using NetBeans). > please help.... > JDBC drivers need to be (somehow) loaded before you can resolve the relevant jdbc urls; somehow your code needs to call Class.forName("jdbcdrivername"), where that string is set to the relevant jdbc driver classname