Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 40240 invoked from network); 5 Jun 2006 21:14:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jun 2006 21:14:33 -0000 Received: (qmail 37021 invoked by uid 500); 5 Jun 2006 21:14:32 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 36987 invoked by uid 500); 5 Jun 2006 21:14:32 -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 36978 invoked by uid 99); 5 Jun 2006 21:14:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 14:14:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 14:14:31 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6390F7142C8 for ; Mon, 5 Jun 2006 21:13:32 +0000 (GMT) Message-ID: <31557423.1149542012404.JavaMail.jira@brutus> Date: Mon, 5 Jun 2006 21:13:32 +0000 (GMT+00:00) From: "Doug Cutting (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-242) job fails because of "No valid local directories in property: " exception In-Reply-To: <13734662.1148411729914.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-242?page=all ] Doug Cutting updated HADOOP-242: -------------------------------- Fix Version: 0.4 (was: 0.3.0) > job fails because of "No valid local directories in property: " exception > ------------------------------------------------------------------------- > > Key: HADOOP-242 > URL: http://issues.apache.org/jira/browse/HADOOP-242 > Project: Hadoop > Type: Bug > Components: mapred > Reporter: Yoram Arnon > Assignee: Owen O'Malley > Fix For: 0.4 > Attachments: no-local.patch > > when running a fairly large job, of 70+K map tasks, I get many exceptions as shown below, and eventually the job failes when a task fails four times. > The exception doesn't really tell us enough information to debug this properly, so the first thing to do would be to add more information (path) to the exception. > The path indicated in the config file exists, is writable and valid, though 'path' may be anything. > the exception: > java.io.IOException: No valid local directories in property: mapred.local.dir at org.apache.hadoop.conf.Configuration.getLocalPath(Configuration.java:293) at org.apache.hadoop.mapred.JobConf.getLocalPath(JobConf.java:153) at org.apache.hadoop.mapred.TaskTracker$TaskInProgress.localizeTask(TaskTracker.java:523) at org.apache.hadoop.mapred.TaskTracker$TaskInProgress.launchTask(TaskTracker.java:572) at org.apache.hadoop.mapred.TaskTracker.startNewTask(TaskTracker.java:389) at org.apache.hadoop.mapred.TaskTracker.offerService(TaskTracker.java:303) at org.apache.hadoop.mapred.TaskTracker.run(TaskTracker.java:418) at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:920) > the code: > public Path getLocalPath(String dirsProp, String path) > throws IOException { > String[] dirs = getStrings(dirsProp); > int hashCode = path.hashCode(); > FileSystem fs = FileSystem.getNamed("local", this); > for (int i = 0; i < dirs.length; i++) { // try each local dir > int index = (hashCode+i & Integer.MAX_VALUE) % dirs.length; > Path file = new Path(dirs[index], path); > Path dir = file.getParent(); > if (fs.exists(dir) || fs.mkdirs(dir)) { > return file; > } > } > throw new IOException("No valid local directories in property: "+dirsProp); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira