Thanks. It worked. -- anand kishore http://blog.semanticvoid.com http://twitter.com/semanticvoid
On Wed, Mar 4, 2009 at 3:29 PM, Amandeep Khurana <ama...@gmail.com> wrote: > Put it into the $HADOOP_HOME/lib folder. To be on the safer side, I > generally include it in the job jar. > > Dont forget to put Class.forName(driverClassName); in your job code. > > Amandeep > > > Amandeep Khurana > Computer Science Graduate Student > University of California, Santa Cruz > > > On Wed, Mar 4, 2009 at 3:16 PM, anand <an...@semanticvoid.com> wrote: > > > Hi, > > > > I'm trying out an example of importing data from mysql into hadoop > > (something like > > > > > http://svn.apache.org/repos/asf/hadoop/core/trunk/src/examples/org/apache/hadoop/examples/DBCountPageView.java > > ). > > I'm connecting to Mysql and hence am providing the mysql-jdbc-connector > jar > > via the '-libjar' option. But I repeatedly get "Class not found - > > com.mysql.jdbc.Driver" execption. How do I provide the mysql_connector > jar > > to the classpath of the job run by hadoop. > > > > -- > > anand kishore > > http://blog.semanticvoid.com > > http://twitter.com/semanticvoid > > >