You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jonathan Coveney (JIRA)" <ji...@apache.org> on 2012/08/21 01:46:38 UTC

[jira] [Commented] (PIG-2884) JobControlCompiler mis-logs after reducer estimation

    [ https://issues.apache.org/jira/browse/PIG-2884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438321#comment-13438321 ] 

Jonathan Coveney commented on PIG-2884:
---------------------------------------

+1
                
> JobControlCompiler mis-logs after reducer estimation
> ----------------------------------------------------
>
>                 Key: PIG-2884
>                 URL: https://issues.apache.org/jira/browse/PIG-2884
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: PIG-2884.1.patch
>
>
> This section of code produces erroneous logging messages:
> {noformat}
> mro.estimatedParallelism = estimateNumberOfReducers(nwJob, mro);
> // reducer estimation could return -1 if it couldn't estimate
> log.info("Could not estimate number of reducers and no requested or default " +
>          "parallelism set. Defaulting to 1 reducer.");
> jobParallelism = mro.estimatedParallelism > 0 ? mro.estimatedParallelism : 1;
> {noformat}
> Fix is to use a if/then. Patch forthcoming.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira