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 715511895C for ; Sat, 5 Mar 2016 14:47:53 +0000 (UTC) Received: (qmail 44806 invoked by uid 500); 5 Mar 2016 14:47:48 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 44673 invoked by uid 500); 5 Mar 2016 14:47:48 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 44662 invoked by uid 99); 5 Mar 2016 14:47:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Mar 2016 14:47:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 54965C0E3D for ; Sat, 5 Mar 2016 14:47:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=watzke-cz.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dZnGKjK7ATZt for ; Sat, 5 Mar 2016 14:47:46 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id C48EA5F1EF for ; Sat, 5 Mar 2016 14:47:40 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id p65so54838460wmp.1 for ; Sat, 05 Mar 2016 06:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=watzke-cz.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version; bh=havCDm5jZ6+yAc0QIOKIM1qtHiG2RO6GDhNcfQJe/e8=; b=d699kF/mNIe20g3A+yzxKydlWqC3kjzYwq1t1Aq/YrLvnW8sJ44gK4OZylwUWXE/Dq KzOJVCOg6B2xtTK6/R8XQPhESJPtR8vU1oZJUjnjnc4lmlZkRGibpzU22Eq6UAPNA+R9 7aPfFIxztAbCNpHkj8zbrnk3HEzBNnmsHQsQNQeA3Z6NHJ6SnHZZr+iBAVeRsOJt9GV2 Fsy0GeNR2qkDjvo1eRpSR7oCX/0q2Q3EwN8EiktvQpKXKiUy3E0wTgh5DrCKhWyuxYq7 /V5Wyt0vJEQ3goEv8byDbhT4UsXasuEWbwlJ7PqIW+klSDpIArG60oexPGiOQBlo6ZZj uH1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=havCDm5jZ6+yAc0QIOKIM1qtHiG2RO6GDhNcfQJe/e8=; b=FgsiTchGWr2m6zLSDER+2Yr88cbncmAyj0lt4pS1RDLMHvYQRU8+KImPNZ/dMj5XRC p+aehlyOAfxdt57HsDn/dErEcIkkplJoGe1CwROiZppTC6//eojHCSE3MxMrQjuySfqa 3l19JkL5sP7AkFSBqOhDGEX64NB3SrVHT0+63swAg/KqUs9kzMGLUPRVrSM81R7b1Snt n6Hx8fKh6EbH25t9/AEvVe3KVVfFMG/2xSd5Mm57qXM7uvzkYto6wTT9hE5GCyz0wDiD bxe8eTTpV8v6M9rfdFHHx2t1bTFz4H+2h9FgVSqVCyqiPdQdsg6obpEvPJdCxLqhjtpN mGAA== X-Gm-Message-State: AD7BkJKS8Hvm2HX/d51EEWf6jGxG1fm5F0KWcDLM7swLJYiIf7TpiSWuaNdBV1cfSB4gag== X-Received: by 10.194.90.229 with SMTP id bz5mr15481513wjb.143.1457189260234; Sat, 05 Mar 2016 06:47:40 -0800 (PST) Received: from [192.168.1.100] (ip-62-24-94-207.net.upcbroadband.cz. [62.24.94.207]) by smtp.gmail.com with ESMTPSA id 77sm4197602wmp.18.2016.03.05.06.47.39 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Mar 2016 06:47:39 -0800 (PST) To: user@hadoop.apache.org From: David Watzke Subject: datanode directory structure mess-up Message-ID: <56DAF18A.20203@watzke.cz> Date: Sat, 5 Mar 2016 15:47:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------000602060908080003060105" --------------000602060908080003060105 Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: 7bit Hi list, I ran into trouble because I accidentally usedthis tool https://github.com/killerwhile/volume-balancerwith Hadoop 2.6.0 (just like that page warns you not to -- I used it successfully before and didn't think to check that page before using it again) and it messed up my datadirs because as I understand it that software now makes invalid assumptions about what directory moves can it do. Now the datanode logs are filled with these: WARN org.apache.hadoop.hdfs.server.datanode.VolumeScanner: I/O error while finding block BP-680964103-A.B.C.D-1375882473930:blk_5822441067008155275_0 on volume /xyz/dfs/dn What can I do to fix this? I don't know what files/dirs were moved and from where but is there a reasonable way out of this? Such as editing VERSION file to a previous version when DN is down so that it fixes the layout by itself - would that work? Please note that I've lost the other replica due to a filesystem error so I can't just ignore it. This is literally my only option to recover some missing blocks. Thanks, -- David Watzke --------------000602060908080003060105 Content-Type: text/html; charset=iso-8859-2 Content-Transfer-Encoding: 8bit

Hi list,

I ran into trouble because I accidentally used this tool https://github.com/killerwhile/volume-balancerwith Hadoop 2.6.0 (just like that page warns you not to -- I used it successfully before and didn't think to check that page before using it again) and it messed up my datadirs because as I understand it that software now makes invalid assumptions about what directory moves can it do. Now the datanode logs are filled with these:

WARN org.apache.hadoop.hdfs.server.datanode.VolumeScanner: I/O error while finding block BP-680964103-A.B.C.D-1375882473930:blk_5822441067008155275_0 on volume /xyz/dfs/dn

What can I do to fix this? I don't know what files/dirs were moved and from where but is there a reasonable way out of this? Such as editing VERSION file to a previous version when DN is down so that it fixes the layout by itself - would that work?

Please note that I've lost the other replica due to a filesystem error so I can't just ignore it. This is literally my only option to recover some missing blocks.

Thanks,

-- 
David Watzke
--------------000602060908080003060105--