Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A3381200BF3 for ; Thu, 5 Jan 2017 23:33:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A1D33160B42; Thu, 5 Jan 2017 22:33:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1EB1D160B33 for ; Thu, 5 Jan 2017 23:32:59 +0100 (CET) Received: (qmail 98517 invoked by uid 500); 5 Jan 2017 22:32:58 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 98430 invoked by uid 99); 5 Jan 2017 22:32:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2017 22:32:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6934F2C1F5A for ; Thu, 5 Jan 2017 22:32:58 +0000 (UTC) Date: Thu, 5 Jan 2017 22:32:58 +0000 (UTC) From: "Sahil Takiar (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-15546) Optimize Utilities.getInputPaths() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 05 Jan 2017 22:33:00 -0000 Sahil Takiar created HIVE-15546: ----------------------------------- Summary: Optimize Utilities.getInputPaths() Key: HIVE-15546 URL: https://issues.apache.org/jira/browse/HIVE-15546 Project: Hive Issue Type: Sub-task Components: Hive Reporter: Sahil Takiar Assignee: Sahil Takiar When running on blobstores (like S3) where metadata operations (like listStatus) are costly, Utilities.getInputPaths() can add significant overhead when setting up the input paths for an MR / Spark / Tez job. The method performs a listStatus on all input paths in order to check if the path is empty. If the path is empty, a dummy file is created for the given partition. This is all done sequentially. This can be really slow when there are a lot of empty partitions. Even when all partitions have input data, this can take a long time. We should either: (1) Just remove the logic to check if each input path is empty, and handle any edge cases accordingly. (2) Multi-thread the listStatus calls -- This message was sent by Atlassian JIRA (v6.3.4#6332)