Removing space worked. Thanks Will
Thanks On Thu, Jun 20, 2013 at 12:18 PM, <[email protected]>wrote: > > pig -f $ROOT_DIR/pig0.pig -param inputDatePig=$inputDate -param > StartDate =$SDate -param EndDate=$EDate > > What happens if you take out the space in > StartDate =$SDate > > so that the command is > > pig -f $ROOT_DIR/pig0.pig -param inputDatePig=$inputDate -param > StartDate=$SDate -param EndDate=$EDate > > > > Will > > William F Dowling > Senior Technologist > Thomson Reuters > > > -----Original Message----- > From: Mix Nin [mailto:[email protected]] > Sent: Thursday, June 20, 2013 3:04 PM > To: [email protected]; [email protected] > Subject: Re: Passing multiple parameters to a PIG script > > Sorry, I sent early ... In continuation of above > > i get an error as below > > 2013-06-20 11:55:21,153 [main] INFO > org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor - The > parameter: "StartDate" cannot be parsed by Pig. Please double check it > 2013-06-20 11:55:21,153 [main] INFO > org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor - Parser > give the follow error message: > 2013-06-20 11:55:21,153 [main] INFO > org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor - > Encountered "<EOF>" at line 1, column 9. > Was expecting: > "=" ... > > If I send only $inputDate , it's working fine. Am i missing anything? > > > > Thanks > > > On Thu, Jun 20, 2013 at 12:02 PM, Mix Nin <[email protected]> wrote: > > > 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 > > > > >
