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 8F077DE04 for ; Thu, 25 Oct 2012 13:09:48 +0000 (UTC) Received: (qmail 70917 invoked by uid 500); 25 Oct 2012 13:09:43 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 70661 invoked by uid 500); 25 Oct 2012 13:09:43 -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 70643 invoked by uid 99); 25 Oct 2012 13:09:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 13:09:42 +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 todd@cloudera.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 13:09:36 +0000 Received: by mail-la0-f48.google.com with SMTP id u2so1579803lag.35 for ; Thu, 25 Oct 2012 06:09:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=lfaFTwKAvr1Moby6g4c79DbKF+YyX/YIwno+bnn72e4=; b=HRfxR5yyp4A1uPUQwBVBeDxmqMotzNI30+y9S8KVIJi01nz8PC0qmH4xV47GZKPXgD NIP4a/r7iochFfeSfU1Bkqr36ER3V0ZR2cyCaww1FWq3apArIuVLVF64gIjwLThngCLd Ix+9Gd0CQCmYBdcIG0fCtRy81/rOCUWzdQPN3lSKw72lBA/IoPLYH2fcFgFxl+6JzboA 761NnK1MMWIoIyvtZwHKR6isoIhpqEh7ZLCB5aVxrkIwsN9mwOsvde39qh2aToYHOZ37 5ghHswe4qSOAXBxXhnGfwDOQjG8HINZznSWMxwsTlaDgU8a1RIzKskwnyVg5nI4/CegK +LHg== Received: by 10.152.108.42 with SMTP id hh10mr17377712lab.4.1351170506589; Thu, 25 Oct 2012 06:08:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.21.231 with HTTP; Thu, 25 Oct 2012 06:08:06 -0700 (PDT) In-Reply-To: References: From: Todd Lipcon Date: Thu, 25 Oct 2012 06:08:06 -0700 Message-ID: Subject: Re: HDFS HA IO Fencing To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=bcaec54fb9c61385d804cce1e667 X-Gm-Message-State: ALoCoQm1tOwzn/pqL+UMofG1rZ/PHBbjbHgSjEXlFdzeSfACzoH0ZPMB5paUyxUj9ZAJJfwh2qA/ X-Virus-Checked: Checked by ClamAV on apache.org --bcaec54fb9c61385d804cce1e667 Content-Type: text/plain; charset=ISO-8859-1 Hi Liu, Locks are not sufficient, because there is no way to enforce a lock in a distributed system without unbounded blocking. What you might be referring to is a lease, but leases are still problematic unless you can put bounds on the speed with which clocks progress on different machines, _and_ have strict guarantees on the way each node's scheduler works. With Linux and Java, the latter is tough. You may want to look into QuorumJournalManager which doesn't require setting up IO fencing. -Todd On Thu, Oct 25, 2012 at 1:27 AM, lei liu wrote: > I want to use HDFS HA function, I find the IO Fencing function is > complex in hadoop2.0. I think we can use file lock to implement the IO > Fencing function, I think that is simple. > > Thanks, > > LiuLei > -- Todd Lipcon Software Engineer, Cloudera --bcaec54fb9c61385d804cce1e667 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Liu,

Locks are not sufficient, because there is no wa= y to enforce a lock in a distributed system without unbounded blocking. Wha= t you might be referring to is a lease, but leases are still problematic un= less you can put bounds on the speed with which clocks progress on differen= t machines, _and_ have strict guarantees on the way each node's schedul= er works. With Linux and Java, the latter is tough.

You may want to look into QuorumJournalManager which do= esn't require setting up IO fencing.

-Todd
=
On Thu, Oct 25, 2012 at 1:27 AM, lei liu <liulei412@gmail.com> wrote:
I want to use HDFS HA function, I find the= =A0 IO Fencing function is=A0 complex in hadoop2.0. I think we can use=A0 f= ile lock to implement the=A0 IO Fencing function, I think that is simple.<= br>
Thanks,

LiuLei



--
Todd Lipcon<= br>Software Engineer, Cloudera
--bcaec54fb9c61385d804cce1e667--