hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: HADOOP-2536 supports Oracle too?
Date Tue, 17 Feb 2009 15:28:15 GMT
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

Mime
View raw message