[
https://issues.apache.org/jira/browse/PIG-3896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13969139#comment-13969139
]
Daniel Dai commented on PIG-3896:
---------------------------------
I did some simple test and seems work for me. Can you share your script?
> PigServer - Batch
> ------------------
>
> Key: PIG-3896
> URL: https://issues.apache.org/jira/browse/PIG-3896
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.12.0
> Environment: linux
> Reporter: srinivas
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> When using PigServer to execute pig scripts, multiple store statements in a
> single pig script result in multiple pig jobs getting created.
> In earlier versions only on pig job would be created for a pig script even
> there were multiple store statements in the script.
> It looks like batch mode changes affected this
> 0.10.0
> pigServer.setBatchOn();
> pigServer.registerScript(pigScript, params);
> List<ExecJob> pigJobs = pigServer.executeBatch();
> this would create only one pig job
> in version 0.12.0
> pigServer.setBatchOn();
> pigServer.registerScript(pigScript, params);
> List<ExecJob> pigJobs = pigServer.executeBatch(true);
> create multiple pig jobs instead of one and taking longer.
--
This message was sent by Atlassian JIRA
(v6.2#6252)