RE: Trouble with REGEX in PIG

2013-12-04 Thread Watrous, Daniel
, Daniel -Original Message- From: Pradeep Gollakota [mailto:pradeep...@gmail.com] Sent: Wednesday, December 04, 2013 11:28 AM To: user@pig.apache.org Subject: Re: Trouble with REGEX in PIG It's not valid PigLatin... The Grunt shell doesn't let you try out functions and UDFs

RE: Trouble with REGEX in PIG

2013-12-04 Thread Watrous, Daniel
That's what I was trying first, but then I tried defining it too. -Original Message- From: Ankit Bhatnagar [mailto:ank...@yahoo-inc.com] Sent: Wednesday, December 04, 2013 11:15 AM To: user@pig.apache.org; Watrous, Daniel Subject: Re: Trouble with REGEX in PIG R u planning t

Re: Trouble with REGEX in PIG

2013-12-04 Thread Pradeep Gollakota
It's not valid PigLatin... The Grunt shell doesn't let you try out functions and UDFs are you're trying to use them. A = LOAD 'data' USING PigStorage() as (ip: chararray); B = FOREACH A GENERATE REGEX_EXTRACT(ip, '(.*):(.*)', 1); DUMP B; You always have to load a dataset and work wit

Re: Trouble with REGEX in PIG

2013-12-04 Thread Ankit Bhatnagar
R u planning to use org.apache.pig.builtin.REGEX_EXTRACT ? On 12/4/13 9:28 AM, "Watrous, Daniel" wrote: >Hi, > >I'm trying to use regular expressions in PIG, but it's failing. Based on >the documentation >http://pig.apache.org/docs/r0.12.0/func.html#regex-extract I am trying >this: > >[watro

Trouble with REGEX in PIG

2013-12-04 Thread Watrous, Daniel
Hi, I'm trying to use regular expressions in PIG, but it's failing. Based on the documentation http://pig.apache.org/docs/r0.12.0/func.html#regex-extract I am trying this: [watrous@c0003913 ~]$ pig -x local which: no hadoop in (/opt/krb5/sbin/64:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/b