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 >> Jython 'import re' problem


+
Russell Jurney 2013-01-29, 17:10
Copy link to this message
-
Re: Jython 'import re' problem
This was resolve by https://issues.apache.org/jira/browse/PIG-2665 , HOLLA!
0.11 works :)
On Tue, Jan 29, 2013 at 9:10 AM, Russell Jurney <[EMAIL PROTECTED]>wrote:

> Offending code:
>
> @outputSchema("token:chararray")
> def remove_punctuation(self, token):
>   punctuation = re.compile(r'[-.@&$#`\'?!,></\\":;()|]')
>   words = list()
>   word = punctuation.sub("", token)
>   if word != "":
>     return word
>
> Error:
>
> ImportError: No module named re
>
>
> Any ideas?
>
> --
> Russell Jurney twitter.com/rjurney [EMAIL PROTECTED] datasyndrome.
> com
>

--
Russell Jurney twitter.com/rjurney [EMAIL PROTECTED] datasyndrome.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