Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86BBA11A4D for ; Wed, 9 Jul 2014 21:20:33 +0000 (UTC) Received: (qmail 82447 invoked by uid 500); 9 Jul 2014 21:20:28 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 82327 invoked by uid 500); 9 Jul 2014 21:20:28 -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 82305 invoked by uid 99); 9 Jul 2014 21:20:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 21:20:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chris.mawata@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vc0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 21:20:24 +0000 Received: by mail-vc0-f170.google.com with SMTP id hy10so8633924vcb.1 for ; Wed, 09 Jul 2014 14:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=p6r7SGIH5KmQjEeClbFoHVdo8D9mHYrX4rCtvxvh9w8=; b=kaYInAaj6s/eAUS4tnUTGI1w6zlB5yixjNhugCDzO7OHPL73Bx0oc/Rf1/CU3tuDW2 IZm/+COd4nNpbMYvDdKatOYT+RTrP+crbV3hv/BpkoVXZDOrYf2npsaN2YP6mvxgDP7E QmcWJw1FWHMaCTUTHWoV/giPho673M64d4Qb8tl52SxrbjZnhKNuT6OV/mq6OEnkrmDT CNN8qc+u3M33crXNEQksNUkORyw2+DnRXkAtWqefdR3nVHx8XW0XDMn5oj98O2SWzx8+ wr2mnGa1bamW3CpCn5ALojn9Xz5kPsxYTElSEgfRTruvLFPGIE829imZ4QVRXRLQpfsN sRdQ== MIME-Version: 1.0 X-Received: by 10.52.0.177 with SMTP id 17mr34682737vdf.12.1404940799853; Wed, 09 Jul 2014 14:19:59 -0700 (PDT) Received: by 10.221.38.196 with HTTP; Wed, 9 Jul 2014 14:19:59 -0700 (PDT) Received: by 10.221.38.196 with HTTP; Wed, 9 Jul 2014 14:19:59 -0700 (PDT) In-Reply-To: References: Date: Thu, 10 Jul 2014 05:19:59 +0800 Message-ID: Subject: Re: Copy hdfs block from one data node to another From: Chris Mawata To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b86e4f24e4d9f04fdc94544 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b86e4f24e4d9f04fdc94544 Content-Type: text/plain; charset=UTF-8 Haven't looked at the source but the thing you are trying to do sounds similar to what happens when you are decommissioning a datanode. I would hunt for that code. Cheers Chris On Jul 9, 2014 3:41 PM, "Yehia Elshater" wrote: > Hi Chris, > > Actually I need this functionality for my research, basically for fault > tolerance. I can calculate some failure probability for some data nodes > after certain unit of time. So I need to copy all the blocks reside on > these nodes to another nodes. > > Thanks > Yehia > > > On 7 July 2014 20:45, Chris Mawata wrote: > >> Can you outline why one would want to do that? The blocks are disposable >> so it is strange to manipulate them directly. >> On Jul 7, 2014 8:16 PM, "Yehia Elshater" wrote: >> >>> Hi All, >>> >>> How can copy a certain hdfs block (given the file name, start and end >>> bytes) from one node to another node ? >>> >>> Thanks >>> Yehia >>> >> > --047d7b86e4f24e4d9f04fdc94544 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Haven't looked at the source but the thing you are tryin= g to do sounds similar to what happens when you are decommissioning a datan= ode. I would hunt for that code.
Cheers
Chris

On Jul 9, 2014 3:41 PM, "Yehia Elshater&quo= t; <y.z.elshater@gmail.com= > wrote:
Hi Chris,

Actually I need this function= ality for my research, basically for fault tolerance. I can calculate some = failure probability for some data nodes after certain unit of time. So I ne= ed to copy all the blocks reside on these nodes to another nodes.=C2=A0

Thanks
Yehia


On 7 July 2014 20:45, Chris Mawata= <chris.mawata@gmail.com> wrote:

Can you outline why one would= want to do that? The blocks are disposable so it is strange to manipulate = them directly.

On Jul 7, 2014 8:16 PM, "Yehia Elshater&quo= t; <y.z.elsh= ater@gmail.com> wrote:
Hi All,
=
How ca= n copy a certain hdfs block (given the file name, start and end bytes) from= one node to another node ?=C2=A0

Thanks
Yehia

--047d7b86e4f24e4d9f04fdc94544--