Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 87262 invoked from network); 10 Sep 2007 19:21:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 19:21:51 -0000 Received: (qmail 93655 invoked by uid 500); 10 Sep 2007 19:21:44 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 93616 invoked by uid 500); 10 Sep 2007 19:21:44 -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 93607 invoked by uid 99); 10 Sep 2007 19:21:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 12:21:44 -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; Mon, 10 Sep 2007 19:21:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D6900714191 for ; Mon, 10 Sep 2007 12:21:29 -0700 (PDT) Message-ID: <32463459.1189452089875.JavaMail.jira@brutus> Date: Mon, 10 Sep 2007 12:21:29 -0700 (PDT) From: "Konstantin Shvachko (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1845) Datanodes get error message "is valid, and cannot be written to" In-Reply-To: <15871818.1189097792148.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-1845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526229 ] Konstantin Shvachko commented on HADOOP-1845: --------------------------------------------- This looks like a recent addition. Could you guys post with which versions of hadoop you can/started to see that behavior so that we could track what could have caused it. > Datanodes get error message "is valid, and cannot be written to" > ----------------------------------------------------------------- > > Key: HADOOP-1845 > URL: https://issues.apache.org/jira/browse/HADOOP-1845 > Project: Hadoop > Issue Type: Bug > Components: dfs > Affects Versions: 0.14.1 > Reporter: Hairong Kuang > Fix For: 0.15.0 > > > >> Copy from dev list: > Our cluster has 4 nodes and i set the mapred.subimt.replication parameter to 2 on all nodes and the master. Everything has been restarted. > Unfortuantely, we still have the same exception : > 2007-09-05 17:01:59,623 ERROR org.apache.hadoop.dfs.DataNode: > DataXceiver: java.io.IOException: Block blk_-5969983648201186681 is valid, and cannot be written to. > at org.apache.hadoop.dfs.FSDataset.writeToBlock(FSDataset.java:515) > at > org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:822) > at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:727) > at java.lang.Thread.run(Thread.java:595) > >> end of copy > The message shows that the namenode schedules to replicate a block to a datanode that already holds the block. The namenode block placement algorithm makes sure that it does not schedule a block to a datanode that is confirmed to hold a replica of the block. But it is not aware of any in-transit block placements (i.e. the scheduled but not confirmed block placements), so occasionally we may still see "is valid, and cannot be written to" errors. > A fix to the problem is to keep track of all in-transit block placements, and the block placement algorithm considers these to-be-confirmed replicas as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.