I think the issue is the quotes in your JOBID are getting eaten by declare.  
Try USING com.innovation.serp.pig.lily.LilySearchMetricsStorer('$JOBID');

Alan.

On Nov 15, 2011, at 7:46 AM, Geert Van Landeghem wrote:

> hello,
> 
> is it possible to pass values to a store (or load) function?
> 
> e.g.
> 
> %declare JOBID 'JOB-2011-11-15-001';
> 
> 
> STORE metrics
>    INTO 'metrics'
>    USING com.innovation.serp.pig.lily.LilySearchMetricsStorer($JOBID);
> 
> executing this gives following error: ERROR
> org.apache.pig.tools.grunt.Grunt - ERROR 1200: <file
> src/main/pig/65kcompanies.pig, line 51, column 68>  mismatched input 'JOB'
> expecting RIGHT_PAREN
> 
> -- 
> 
> 
> -- 
> *
> kind regards,
> 
> Van Landeghem Geert*

Reply via email to