|
|
-
Re: Loading text fileAlan Gates 2012-10-03, 19:47
There is not a pre-built load function to do that. In fact I am not aware of a Hadoop InputFormat that does that. So you would first need to subclass Hadoop's FileInputFormat and then write a Load Func. Both should be fairly straight forward since all you need to do is remove the record and field parsing from existing code.
Alan. On Oct 3, 2012, at 9:49 AM, JAGANADH G wrote: > Hi All > > Is there any way to load a text file as single record (text:chararray) in > Pig. > > I am trying to load a bunch of text files from a directory . But it keeps > each line as single record. > > > -- > ********************************** > JAGANADH G > http://jaganadhg.in > *ILUGCBE* > http://ilugcbe.org.in |