|
|
-
registerScript vs executeBatch
Prashant Kommireddi 2013-02-10, 03:50
Any reason why PigServer.registerScript(..) chooses to only parse and not execute, vs executing a pig script via command line invokes the same method and chooses to execute right away. The latter makes sense to me, but not sure why the behavior of PigServer API is not in sync with that?
The difference in code is GruntParser.parseStopOnError(boolean) is called with different arguments in the 2 cases.
-Prashant
-
Re: registerScript vs executeBatch
Bill Graham 2013-02-10, 07:03
Is this because PigServer supportes isBatchOn and grunt/command line doesn't?
On Sat, Feb 9, 2013 at 7:50 PM, Prashant Kommireddi <[EMAIL PROTECTED]>wrote:
> Any reason why PigServer.registerScript(..) chooses to only parse and not > execute, vs executing a pig script via command line invokes the same method > and chooses to execute right away. The latter makes sense to me, but not > sure why the behavior of PigServer API is not in sync with that? > > The difference in code is GruntParser.parseStopOnError(boolean) is called > with different arguments in the 2 cases. > > -Prashant >
-- *Note that I'm no longer using my Yahoo! email address. Please email me at [EMAIL PROTECTED] going forward.*
-
Re: registerScript vs executeBatch
Julien Le Dem 2013-02-11, 04:02
yes, the behavior of registerScript() depends on if you called setBatchOn() before or not if batch is on, you need to call executeBatch() otherwise it just executes when you store something
On Sat, Feb 9, 2013 at 11:03 PM, Bill Graham <[EMAIL PROTECTED]> wrote:
> Is this because PigServer supportes isBatchOn and grunt/command line > doesn't? > > On Sat, Feb 9, 2013 at 7:50 PM, Prashant Kommireddi <[EMAIL PROTECTED] > >wrote: > > > Any reason why PigServer.registerScript(..) chooses to only parse and not > > execute, vs executing a pig script via command line invokes the same > method > > and chooses to execute right away. The latter makes sense to me, but not > > sure why the behavior of PigServer API is not in sync with that? > > > > The difference in code is GruntParser.parseStopOnError(boolean) is called > > with different arguments in the 2 cases. > > > > -Prashant > > > > > > -- > *Note that I'm no longer using my Yahoo! email address. Please email me at > [EMAIL PROTECTED] going forward.* >
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext