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 Threaded View
Pig >> mail # user >> Duplicate rows when using regular expression


Copy link to this message
-
Re: Duplicate rows when using regular expression
Could someone please help me understand or give some pointers to me,

On Fri, Mar 23, 2012 at 4:57 PM, Mohit Anchlia <[EMAIL PROTECTED]>wrote:

> I am running a script to load data in the database. When I use [0-4] I see
> 2 rows being created for every record that I process. But when I run them
> individually then it works. Could someone please help me understand or
> troubleshoot this behaviour?
>
>
> pig -f script6.pig -p in="/examples/2/part-m-0000[0-4]" --creates 2 rows
>
> pig -f script6.pig -p in="/examples/2/part-m-00000 --works
>
> pig -f script6.pig -p in="/examples/2/part-m-00001 --works
>
> pig -f script6.pig -p in="/examples/2/part-m-00002 --works
>
> pig -f script6.pig -p in="/examples/2/part-m-00003 --works
>
> pig -f script6.pig -p in="/examples/2/part-m-00004 --works
>
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