hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anand <an...@semanticvoid.com>
Subject Re: Importing data from mysql into hadoop
Date Wed, 04 Mar 2009 23:56:41 GMT
Thanks. It worked.
--
anand kishore
http://blog.semanticvoid.com
http://twitter.com/semanticvoid


On Wed, Mar 4, 2009 at 3:29 PM, Amandeep Khurana <amansk@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 <anand@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
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message