Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 55773 invoked from network); 25 Oct 2007 08:28:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 08:28:12 -0000 Received: (qmail 57849 invoked by uid 500); 25 Oct 2007 08:27:59 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 57801 invoked by uid 500); 25 Oct 2007 08:27:59 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 57790 invoked by uid 99); 25 Oct 2007 08:27:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 01:27:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 08:28:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1472B714241 for ; Thu, 25 Oct 2007 01:27:51 -0700 (PDT) Message-ID: <1319399.1193300871081.JavaMail.jira@brutus> Date: Thu, 25 Oct 2007 01:27:51 -0700 (PDT) From: "Arun C Murthy (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Issue Comment Edited: (HADOOP-2098) File handles for log files are still open in case of jobs with 0 maps In-Reply-To: <28553113.1193290010782.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537539 ] acmurthy edited comment on HADOOP-2098 at 10/25/07 1:26 AM: ----------------------------------------------------------------- We should also check for zero input files in {{FileInputFormat.validateInput(JobConf)}} and throw an {{InvalidInputException}} in the first place. Something along the lines of: {noformat} Index: /home/arun/dev/java/hadoop/HADOOP-1881/src/java/org/apache/hadoop/mapred/FileInputFormat.java =================================================================== ---src/java/org/apache/hadoop/mapred/FileInputFormat.java (revision 588140) +++ src/java/org/apache/hadoop/mapred/FileInputFormat.java (working copy) @@ -150,6 +150,9 @@ } } } + if (totalFiles == 0) { + result.add(new IOException("Found zero input files")); + } if (!result.isEmpty()) { throw new InvalidInputException(result); } {noformat} was (Author: acmurthy): We should also check for zero input files in {{FileInputFormat.validateInput(JobConf)}} and throw an {{InvalidInputException}} in the first place. Prevention is better than cure... > File handles for log files are still open in case of jobs with 0 maps > --------------------------------------------------------------------- > > Key: HADOOP-2098 > URL: https://issues.apache.org/jira/browse/HADOOP-2098 > Project: Hadoop > Issue Type: Bug > Components: mapred > Affects Versions: 0.15.0 > Reporter: Amar Kamat > Assignee: Amar Kamat > Fix For: 0.16.0 > > Attachments: HADOOP-2098.patch > > > When a job with zero maps is submitted the handle for the log file for that job is still open and can be seen using {{lsof}}. This over time could lead to {{Too many open files Exception}}. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.