Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 724CDD83B for ; Tue, 4 Sep 2012 16:31:00 +0000 (UTC) Received: (qmail 93864 invoked by uid 500); 4 Sep 2012 16:30:55 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 93543 invoked by uid 500); 4 Sep 2012 16:30:55 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 93535 invoked by uid 99); 4 Sep 2012 16:30:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2012 16:30:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hansmire@gmail.com designates 209.85.160.176 as permitted sender) Received: from [209.85.160.176] (HELO mail-gh0-f176.google.com) (209.85.160.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2012 16:30:49 +0000 Received: by ghbz10 with SMTP id z10so1390561ghb.35 for ; Tue, 04 Sep 2012 09:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=j7zIscR7VadDwO0rZ/bjzHzbJ3+h349lNvti1d8Ln7Y=; b=qlg9WdYWDUyTw1mNdAPASh+AVjGaIEwAZiGzgeh6sAhOEdWKSQiZvVAB9lDH2Siity 6Ghj4ffVSke3MIB/k4RjD31BbGNKgqIbpOYn2a+gIw7bu2dTMV0dHCS49Vqoor9vrkCK zpA/9OcFwvJM0/sqNsNlY4UAuWnwY8dmQnTxdvu0uA59LuZaCYI1vl291sclHx5BtmQ+ nSx71UujRjtUwu9laUUTl9PQpzAYqWxTQqzZXDuLIexkzqumXvKcCJtZ01Glx+n1rgsq pTTe5QQTBaGr3K3sbC2OYtfKDVXpXQam8fqxziVD10MgjCD74UDJVCI2Hg+oWTsAFPHj FtFw== MIME-Version: 1.0 Received: by 10.52.35.99 with SMTP id g3mr13286994vdj.21.1346776228573; Tue, 04 Sep 2012 09:30:28 -0700 (PDT) Received: by 10.58.163.225 with HTTP; Tue, 4 Sep 2012 09:30:28 -0700 (PDT) Date: Tue, 4 Sep 2012 12:30:28 -0400 Message-ID: Subject: Data loss on EMR cluster running Hadoop and Hive From: Max Hansmire To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I ran into an issue yesterday where one of the blocks on HDFS seems to have gone away. I would appreciate any help that you can provide. I am running Hadoop on Amazon's Elastic Map Reduce (EMR). I am running hadoop version 0.20.205 and hive version 0.8.1. I have a hive table that is written out in the reduce step of a map reduce job created by hive. This step completed with no errors, but the next map-reduce job that tries to read it failed with the following error message. "Caused by: java.io.IOException: No live nodes contain current block" I ran hadoop fs -cat on the same file and got the same error. Looking more closely at the data and name node logs, I see this error for the same problem block. It is in the name node when trying to read the data. 2012-09-03 11:56:05,054 WARN org.apache.hadoop.hdfs.server.datanode.DataNode (org.apache.hadoop.hdfs.server.datanode.DataXceiver@4a7cdff0): DatanodeRegistration(10.193.39.159:9200, storageID=DS-2147477684-10.193.39.159-9200-1346659207926, infoPort=9102, ipcPort=9201):sendBlock() : Offset 134217727 and length 1 don't match block blk_-7100869813617535842_5426 ( blockLen 120152064 ) 2012-09-03 11:56:05,054 WARN org.apache.hadoop.hdfs.server.datanode.DataNode (org.apache.hadoop.hdfs.server.datanode.DataXceiver@4a7cdff0): DatanodeRegistration(10.193.39.159:9200, storageID=DS-2147477684-10.193.39.159-9200-1346659207926, infoPort=9102, ipcPort=9201):Got exception while serving blk_-7100869813617535842_5426 to /10.96.57.112: java.io.IOException: Offset 134217727 and length 1 don't match block blk_-7100869813617535842_5426 ( blockLen 120152064 ) at org.apache.hadoop.hdfs.server.datanode.BlockSender.(BlockSender.java:141) at org.apache.hadoop.hdfs.server.datanode.DataXceiver.readBlock(DataXceiver.java:189) at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:99) at java.lang.Thread.run(Thread.java:662) 2012-09-03 11:56:05,054 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode (org.apache.hadoop.hdfs.server.datanode.DataXceiver@4a7cdff0): DatanodeRegistration(10.193.39.159:9200, storageID=DS-2147477684-10.193.39.159-9200-1346659207926, infoPort=9102, ipcPort=9201):DataXceiver java.io.IOException: Offset 134217727 and length 1 don't match block blk_-7100869813617535842_5426 ( blockLen 120152064 ) at org.apache.hadoop.hdfs.server.datanode.BlockSender.(BlockSender.java:141) at org.apache.hadoop.hdfs.server.datanode.DataXceiver.readBlock(DataXceiver.java:189) at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:99) at java.lang.Thread.run(Thread.java:662) Unfortunately the EMR cluster that had the data on it has since been terminated. I have access to the logs, but I can't run an fsck. I can provide more detailed stack traces etc. if you think it would be helpful. Rerunning my process by re-generating the corrupted block resolved the issue. Would really appreciate if anyone has a reasonable explanation of what happened and how to avoid in the future. Max