Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

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


Copy link to this message
-
Converting xml to csv
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
+
inelu nagamallikarjuna 2013-09-12, 02:38
+
jamal sasha 2013-09-12, 05:10
+
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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB