I sort of guessed that and tried it as well... but it did not help me. However using .. add jar .. at cli helped!
On Thu, Jul 16, 2009 at 9:10 PM, Prasad Chakka <[email protected]> wrote: > You can put the jar in hive/lib > > > ------------------------------ > *From: *Abhishek Tiwari <[email protected]> > *Reply-To: *<[email protected]> > *Date: *Thu, 16 Jul 2009 08:09:38 -0700 > *To: *<[email protected]> > *Subject: *Using external Jars in UDF > > > Hi, > > I am writing an UDF which can 'select' required rows/records from a > hive-table and dump it into my mysql database over jdbc. > > However, I am not being able to get mysql-connector jar into the classpath > and am receiving the error: java.lang.ClassNotFoundException: > com.mysql.jdbc.Driver > > Can anyone tell where I can place mysql-connector and specify its path, so > that it can work? > > Thanks in advance. > > Regards, > Abhishek > > >
