Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Converting xml to csv


+
jamal sasha 2013-09-12, 00:14
+
inelu nagamallikarjuna 2013-09-12, 02:38
Copy link to this message
-
Re: Converting xml to csv
Umm.. can you elaborate?
On Wed, Sep 11, 2013 at 7:38 PM, inelu nagamallikarjuna <[EMAIL PROTECTED]
> wrote:

> Hai,
>
> Load those two files as two relations and extract or parse XML files by
> using extract_regex_all and finally store them into CSV files.....
>
> Thanks
> Naga
> On Sep 12, 2013 5:44 AM, "jamal sasha" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >   So I have different xml data sources...For example:
> >
> > src1.txt
> >
> > <foo>
> > <bar>1</bar>
> > </foo>
> > <foo>
> > <bar>2</bar>
> > </foo>
> > .. and so on
> >
> >
> > and another data
> >
> > src2.txt
> >
> > <aux>
> > <foobar>1</foobar>
> > <fushbar>foo</fushbar>
> > </aux>
> >
> > ... and so on
> >
> >
> > So basicaly different xml (valid formats)
> >
> > Rather than writing different pig scripts.. is there a way to write 1
> > script and then convert all these xml data into csv?
> > Thanks
> >
>
+
Jagat Singh 2013-09-12, 05:32
+
jamal sasha 2013-09-12, 05:47
+
ajay kumar 2013-09-12, 06:35
+
jamal sasha 2013-09-12, 22:24
+
ajay kumar 2013-09-13, 06:21
+
william.dowling@... 2013-09-13, 13:32
+
ajay kumar 2013-09-16, 05:10
+
william.dowling@... 2013-09-16, 13:51
+
ajay kumar 2013-09-17, 06:15
+
william.dowling@... 2013-09-17, 15:19