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 >> problems with REGEX_EXTRACT_ALL


Copy link to this message
-
problems with REGEX_EXTRACT_ALL
Hi,
I am trying to use REGEX_EXTRACT_ALL with Pig 0.12, but I hit some problems.

1-  The javadoc of the REGEX_EXTRACT_ALL should be updated because in the
documentation there is an example for setting its useMatches field with "DEFINE
GREEDY_EXTRACT REGEX_EXTRACT(false);", but this should be "DEFINE
GREEDY_EXTRACT REGEX_EXTRACT_ALL(false);"

2- The previous DEFINE statement does not work:

grunt> DEFINE GREEDY_EXTRACT REGEX_EXTRACT_ALL(false);
2013-10-23 03:24:34,660 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1200: <line 1, column 40>  mismatched input 'false' expecting
RIGHT_PAREN
Details at logfile:
/home/user/nezih/workspace/feature_engineering/pig_1382523869704.log

I also tried DEFINE GREEDY_EXTRACT REGEX_EXTRACT_ALL('false') but when I
call GREEDY_EXTRACT than I get:
2013-10-23 03:36:39,182 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1200: could not instantiate 'REGEX_EXTRACT_ALL' with arguments
'[false]'

Any help appreciated,
Nezih
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