Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 530329AE3 for ; Fri, 9 Mar 2012 01:04:23 +0000 (UTC) Received: (qmail 91973 invoked by uid 500); 9 Mar 2012 01:04:23 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 91911 invoked by uid 500); 9 Mar 2012 01:04:22 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 91869 invoked by uid 500); 9 Mar 2012 01:04:22 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 91866 invoked by uid 99); 9 Mar 2012 01:04:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 01:04:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 01:04:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8795210FAD for ; Fri, 9 Mar 2012 01:03:58 +0000 (UTC) Date: Fri, 9 Mar 2012 01:03:58 +0000 (UTC) From: "Dmitriy V. Ryaboy (Commented) (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <1753660121.41852.1331255038556.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1881103633.37450.1331171698716.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (PIG-2573) Automagically setting parallelism based on input file size does not work with HCatalog MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225753#comment-13225753 ] Dmitriy V. Ryaboy commented on PIG-2573: ---------------------------------------- Bill, I know, let's call it LoadMetadata :-) Discussed this with Travis, he'll just do instanceof LoadMetadata and go from there. > Automagically setting parallelism based on input file size does not work with HCatalog > -------------------------------------------------------------------------------------- > > Key: PIG-2573 > URL: https://issues.apache.org/jira/browse/PIG-2573 > Project: Pig > Issue Type: Bug > Reporter: Travis Crawford > Assignee: Travis Crawford > Attachments: PIG-2573_move_getinputbytes_to_loadfunc.diff > > > PIG-2334 was helpful in understanding this issue. Short version is input file size is only computed if the path begins with a whitelisted prefix, currently: > * / > * hdfs: > * file: > * s3n: > As HCatalog locations use the form {{dbname.tablename}} the input file size is not computed, and the size-based parallelism optimization breaks. > DETAILS: > I discovered this issue comparing two runs on the same script, one loading regular HDFS paths, and one with HCatalog db.table names. I just happened to notice the "Setting number of reducers" line difference. > {code:title=Loading HDFS files reducers is set to 99} > 2012-03-08 01:33:56,522 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - BytesPerReducer=1000000000 maxReducers=999 totalInputFileSize=98406674162 > 2012-03-08 01:33:56,522 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - Neither PARALLEL nor default parallelism is set for this job. Setting number of reducers to 99 > {code} > {code:title=Loading with an HCatalog db.table name} > 2012-03-08 01:06:02,283 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - BytesPerReducer=1000000000 maxReducers=999 totalInputFileSize=0 > 2012-03-08 01:06:02,283 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - Neither PARALLEL nor default parallelism is set for this job. Setting number of reducers to 1 > {code} > Possible fix: Pig should just ask the loader for the size of its inputs rather than special-casing certain location types. -- 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