Yes i checked SPLIT and MultiStorage , but i didn't find find any way to
group each section.

On Tue, Jan 6, 2015 at 8:55 AM, Shahab Yunus <[email protected]> wrote:

> Have you looked at the SPLIT operator in Pig? Does that help?
> http://pig.apache.org/docs/r0.12.0/basic.html#SPLIT
>
> Regards,
> Shahab
>
> On Tue, Jan 6, 2015 at 8:51 AM, Jumsheed <[email protected]> wrote:
>
> > Hi,
> >
> > I have a file with data in below format,
> >
> > A
> > abcdefghijklmnop
> > abcdefghijklmnop
> > abcdefghijklmnop
> > 3
> > B
> > abcdefghijklmnop
> > abcdefghijklmnop
> > 2
> > C
> > abcdefghijklmnop
> > abcdefghijklmnop
> > abcdefghijklmnop
> > abcdefghijklmnop
> > 4
> >
> > i need to create three files like
> >
> > file1:
> > A
> > abcdefghijklmnop
> > abcdefghijklmnop
> > abcdefghijklmnop
> > 3
> >
> > file2:
> > B
> > abcdefghijklmnop
> > abcdefghijklmnop
> > 2
> >
> > file3:
> > C
> > abcdefghijklmnop
> > abcdefghijklmnop
> > abcdefghijklmnop
> > abcdefghijklmnop
> > 4
> >
> > is there any way you can suggest?
> >
> > Thanks
> > Jumsheed
> >
>

Reply via email to