You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Mix Nin <pi...@gmail.com> on 2013/06/20 21:02:50 UTC
Passing multiple parameters to a PIG script
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