Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 32345 invoked from network); 21 Oct 2009 11:30:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Oct 2009 11:30:22 -0000 Received: (qmail 41721 invoked by uid 500); 21 Oct 2009 11:30:22 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 41683 invoked by uid 500); 21 Oct 2009 11:30:22 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 41673 invoked by uid 99); 21 Oct 2009 11:30:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 11:30:22 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 11:30:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 64195234C045 for ; Wed, 21 Oct 2009 04:29:59 -0700 (PDT) Message-ID: <582467705.1256124599395.JavaMail.jira@brutus> Date: Wed, 21 Oct 2009 11:29:59 +0000 (UTC) From: "Zheng Shao (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-74) Hive can use CombineFileInputFormat for when the input are many small files In-Reply-To: <305385116.1227174044326.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zheng Shao updated HIVE-74: --------------------------- Description: There are cases when the input to a Hive job are thousands of small files. In this case, there is a mapper for each file. Most of the overhead for spawning all these mappers can be avoided if Hive used CombineFileInputFormat introduced via HADOOP-4565 Options to control this behavior: {code} hive.input.format (org.apache.hadoop.hive.ql.io.CombineHiveInputFormat (default, if empty), or org.apache.hadoop.hive.ql.io.HiveInputFormat) mapred.min.split.size.per.node (the minimum bytes of data to create a node-local partition, otherwise the data will combine to rack level. default:0) mapred.min.split.size.per.rack (the minimum bytes of data to create a rack-local partition, otherwise the data will combine to global level. default:0) mapred.max.split.size (the max size of each split, will be exceeded because we stop accumulating *after* reaching it, instead of before) {code} The 3 numbers above must be in non-descending order. was:There are cases when the input to a Hive job are thousands of small files. In this case, there is a mapper for each file. Most of the overhead for spawning all these mappers can be avoided if Hive used CombineFileInputFormat introduced via HADOOP-4565 > Hive can use CombineFileInputFormat for when the input are many small files > --------------------------------------------------------------------------- > > Key: HIVE-74 > URL: https://issues.apache.org/jira/browse/HIVE-74 > Project: Hadoop Hive > Issue Type: Improvement > Components: Query Processor > Reporter: dhruba borthakur > Assignee: Namit Jain > Fix For: 0.5.0 > > Attachments: hive.74.1.patch, hive.74.2.patch, hiveCombineSplit.patch, hiveCombineSplit.patch, hiveCombineSplit2.patch > > > There are cases when the input to a Hive job are thousands of small files. In this case, there is a mapper for each file. Most of the overhead for spawning all these mappers can be avoided if Hive used CombineFileInputFormat introduced via HADOOP-4565 > Options to control this behavior: > {code} > hive.input.format (org.apache.hadoop.hive.ql.io.CombineHiveInputFormat (default, if empty), or org.apache.hadoop.hive.ql.io.HiveInputFormat) > mapred.min.split.size.per.node (the minimum bytes of data to create a node-local partition, otherwise the data will combine to rack level. default:0) > mapred.min.split.size.per.rack (the minimum bytes of data to create a rack-local partition, otherwise the data will combine to global level. default:0) > mapred.max.split.size (the max size of each split, will be exceeded because we stop accumulating *after* reaching it, instead of before) > {code} > The 3 numbers above must be in non-descending order. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.