Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 38470 invoked from network); 19 Jun 2007 17:45:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 17:45:50 -0000 Received: (qmail 42963 invoked by uid 500); 19 Jun 2007 17:45:50 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 42938 invoked by uid 500); 19 Jun 2007 17:45:50 -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 42929 invoked by uid 99); 19 Jun 2007 17:45:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 10:45:50 -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; Tue, 19 Jun 2007 10:45:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2C72F714191 for ; Tue, 19 Jun 2007 10:45:26 -0700 (PDT) Message-ID: <12015291.1182275126178.JavaMail.jira@brutus> Date: Tue, 19 Jun 2007 10:45:26 -0700 (PDT) From: "dhruba borthakur (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1502) IOException at task startup "No valid local directories in property: dfs.client.buffer.dir" In-Reply-To: <7430720.1182238046188.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-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506257 ] dhruba borthakur commented on HADOOP-1502: ------------------------------------------ I see that there is a semantic problem with ClientProtocol.exists() and ClientProtocol.isDir(). The locking is such that they can race with another thread that is creating the directory at the same time. It can so happen that Thread A is is executing mkdir(foodir), but before this transaction is logged into the FsEdits log, another thread B executes exists(foodir) and returns success. Right after this, the namenode shuts down and the transaction is never logged. However, the namenode had already returned "true" to the exists(foodir) call. This appears to be a semantic bug to me. > IOException at task startup "No valid local directories in property: dfs.client.buffer.dir" > ------------------------------------------------------------------------------------------- > > Key: HADOOP-1502 > URL: https://issues.apache.org/jira/browse/HADOOP-1502 > Project: Hadoop > Issue Type: Bug > Components: dfs > Affects Versions: 0.12.3 > Reporter: Koji Noguchi > Priority: Minor > > When tasks started up on a brand new mapred cluster, I saw couples of them fail immediately by > java.io.IOException: No valid local directories in property: dfs.client.buffer.dir > at org.apache.hadoop.conf.Configuration.getFile(Configuration.java:401) > at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.newBackupFile(DFSClient.java:1037) > at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.(DFSClient.java:1004) > at org.apache.hadoop.dfs.DFSClient.create(DFSClient.java:276) > at org.apache.hadoop.dfs.DistributedFileSystem$RawDistributedFileSystem.create(DistributedFileSystem.java:143) > at org.apache.hadoop.fs.ChecksumFileSystem$FSOutputSummer.(ChecksumFileSystem.java:367) > at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:442) > at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:346) > at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:253) > at org.apache.hadoop.util.CopyFiles$FSCopyFilesMapper.copy(CopyFiles.java:215) > at org.apache.hadoop.util.CopyFiles$FSCopyFilesMapper.map(CopyFiles.java:410) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:48) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:175) > at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:1445) > (Run on version 0.12.3 + many patches, so the line number could be a little off) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.