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 >> [HELP] How to split a string in pig script ?


Copy link to this message
-
[HELP] How to split a string in pig script ?
The input schema is:
*{name:chararray, ids:chararray}*,

and the format of *ids* is like:
id1,id2,id3,...,idn

Now, I want to split *ids* and change the input into the below format:
name   id1
name   id2
...
name   idn
How should I do this by pig script, instead of UDFs.

Thanks!
+
Babu, Prashanth 2012-08-09, 06:10
+
Bill Graham 2012-08-09, 06:53
+
Leon Town 2012-08-10, 02:13
+
Leon Town 2012-08-22, 01:49
+
Bill Graham 2012-08-22, 04:32
+
Siddharth Tiwari 2012-08-22, 06:23
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