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 33493E657 for ; Tue, 18 Dec 2012 22:19:42 +0000 (UTC) Received: (qmail 358 invoked by uid 500); 18 Dec 2012 22:19:37 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 99964 invoked by uid 500); 18 Dec 2012 22:19:37 -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 99957 invoked by uid 99); 18 Dec 2012 22:19:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 22:19:37 +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 (athena.apache.org: domain of cembree@gmail.com designates 209.85.216.177 as permitted sender) Received: from [209.85.216.177] (HELO mail-qc0-f177.google.com) (209.85.216.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 22:19:32 +0000 Received: by mail-qc0-f177.google.com with SMTP id u28so699785qcs.36 for ; Tue, 18 Dec 2012 14:19:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=QWsN6TEX0bBXWlok3lTXHEMtaBjIYcazymEt1x8zwSQ=; b=ZHx00RztabwgSuAO9z6FBFmGNmlLNimrHeTJXZbT6SRueP4+DdZouXYdzVOiOO41Tf PapUK0L3+gmgqMDNRVwpTyhbN7DopisTrkPoB2qEKDiCM7rRjPE7lHQg6PQLJWLdrezW RzPXOMNpfBTefvREI96niZgB0sK6GWqn9S4ACb3ie9THvHsHMBb3zMcLG/rTDbmuZsow Plq6+GKNPF2pKZbwH9VHqcw2shKO1Q8C0zocvZugZwPsYdHrA1eP1u2FbH6onzSZk1ou +NeLildpWRzIUsePJHWzeKt8dDZChFvvBu0MltGNOH1aLfXkcP9132JToqVGr1oUHCSP UUrA== MIME-Version: 1.0 Received: by 10.229.78.7 with SMTP id i7mr322100qck.119.1355869149732; Tue, 18 Dec 2012 14:19:09 -0800 (PST) Received: by 10.49.59.134 with HTTP; Tue, 18 Dec 2012 14:19:09 -0800 (PST) Received: by 10.49.59.134 with HTTP; Tue, 18 Dec 2012 14:19:09 -0800 (PST) Reply-To: chris@embree.us In-Reply-To: References: Date: Tue, 18 Dec 2012 17:19:09 -0500 Message-ID: Subject: Re: datanode write forwarding From: Chris Embree To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=00235429ccac081e2d04d127e31f X-Virus-Checked: Checked by ClamAV on apache.org --00235429ccac081e2d04d127e31f Content-Type: text/plain; charset=ISO-8859-1 Harsh, Is that a change from 1.0 code? Hortonworks explains it a little differently. Thanks for the details and pointer to the code. Chris (another one) On Dec 18, 2012 5:14 PM, "Harsh J" wrote: > Hi, > > The received write packet is directly socket-written to the next > node's receiver (async process - we don't wait for it to hit the disk > there), and then written onto the disk of self(). > > You may see HDFS classes BlockReceiver and PacketReceiver in trunk for > more information. > > On Wed, Dec 19, 2012 at 2:26 AM, Jay Vyas wrote: > > Hi : > > > > Do data nodes, when they receive write requests, forward the request to > the > > next datanode in the chain after appending to a file? Or rather, do the > > write and forward asynchronously and at the same time? > > > > -- > > Jay Vyas > > http://jayunit100.blogspot.com > > > > -- > Harsh J > --00235429ccac081e2d04d127e31f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Harsh,

Is that a change from 1.0 code?=A0 Hortonworks explains it a little diff= erently.=A0

Thanks for the details and pointer to the code.

Chris (another one)

On Dec 18, 2012 5:14 PM, "Harsh J" <= ;harsh@cloudera.com> wrote:
Hi,

The received write packet is directly socket-written to the next
node's receiver (async process - we don't wait for it to hit the di= sk
there), and then written onto the disk of self().

You may see HDFS classes BlockReceiver and PacketReceiver in trunk for
more information.

On Wed, Dec 19, 2012 at 2:26 AM, Jay Vyas <jayunit100@gmail.com> wrote:
> Hi :
>
> Do data nodes, when they receive write requests, forward the request t= o the
> next datanode in the chain after appending to a file? Or rather, do th= e
> write and forward asynchronously and at the same time?
>
> --
> Jay Vyas
> http://ja= yunit100.blogspot.com



--
Harsh J
--00235429ccac081e2d04d127e31f--