I don't know any such function. Searching the web, you'll see many people are asking the same question and getting the same answer - sqoop. )
On 21 May 2014 19:06, Mandeep Sihag <mandyiit...@googlemail.com> wrote: > Actually I was interested in directly getting data from database to pig > script using storage class. > > > On Wed, May 21, 2014 at 5:07 PM, Ronald Green <green.ron...@gmail.com > >wrote: > > > You can use Apache Sqoop to move data from hdfs to relational databases > and > > the other way around. > > > > On 21 May 2014 12:08, Mandeep Sihag <mandyiit...@googlemail.com> wrote: > > > > > Hi, > > > > > > I want to take input from mysql database, I can see that there is a > > > DBStorage class for storing the output on database, but couldn't find > the > > > implementation for loading data from mysql. Can somebody help. > > > > > > -- > > > Mandeep Singh > > > > > > > > > -- > Mandeep Singh Sihag > > "Passion is the trigger of success" >