hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mix Nin <pig.mi...@gmail.com>
Subject Passing multiple parameters to a PIG script
Date Thu, 20 Jun 2013 19:02:50 GMT
I want to pass multiple parameters to a pig script from a shell script.

I tried below

>From Shell Script

pig  -f  $ROOT_DIR/pig0.pig -param inputDatePig=$inputDate  -param
StartDate =$SDate -param  EndDate=$EDate

PIG script is as follows

eventData = LOAD 'eap-prod://event' USING
com.engine.data.catalog.pig.DataCatalog ($StartDate, $EndDate,'','x  ,y  ,
Data = FILTER eventData BY  (x=='');
STORE  Data into '$inputDatePig';

i get an error

View raw message