Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 42316 invoked from network); 24 Dec 2009 02:38:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Dec 2009 02:38:52 -0000 Received: (qmail 19129 invoked by uid 500); 24 Dec 2009 02:38:50 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 18976 invoked by uid 500); 24 Dec 2009 02:38:50 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 18966 invoked by uid 99); 24 Dec 2009 02:38:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Dec 2009 02:38:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jason.hadoop@gmail.com designates 209.85.216.201 as permitted sender) Received: from [209.85.216.201] (HELO mail-px0-f201.google.com) (209.85.216.201) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Dec 2009 02:38:38 +0000 Received: by pxi39 with SMTP id 39so5664299pxi.2 for ; Wed, 23 Dec 2009 18:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=mawSYBSPcZ7a3B6jtqJKg0FrL4PeLUJ8O6Qgey6YXnc=; b=ubKYxXsITdUFhbIR2uX5JuKI6b2N7yUQRANo5rjSZXfJLd7lYPZDm53s3pAHElSNIW 6pO9HNH5XDa0g5RBINfSAf01C+OBy8CScgfLa98khiMp4kSXIZ8wtCMVGpuIaF2Kpb5u /2pGDK/C90iflsOdMZIcjsbzTi75fUL1oGXhY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SLfBZrLwe/62PzUbkRpttL0dg6i4UMAsxOaDY/zDHGToFN4jX1YPkXC8/hCbf8pYPr H0gPUbPTi99sflxkIvLhuP+ZM1KCtJYIn5+V4zUttJi3+Yn3zWM8aZgMKyvDqAztUTWt DNtVJVxuhtrUTZDbBQ4GdYh4qTJ3w4+XHEark= MIME-Version: 1.0 Received: by 10.141.101.6 with SMTP id d6mr7633883rvm.180.1261622293503; Wed, 23 Dec 2009 18:38:13 -0800 (PST) In-Reply-To: <24353AA4-5FE0-4614-B78A-F709E15B0193@cse.unl.edu> References: <77938bc20910210743i2ab7f79fqd234f8f5a0911b90@mail.gmail.com> <77938bc20910260814i2f46a5c7k630b40a18c0d2fc4@mail.gmail.com> <314098690910270749r47fb98e7kef6adab471adff07@mail.gmail.com> <77938bc20910270851j33d5546ck7f97f71ef437689@mail.gmail.com> <314098690910272103l7fc2a12dr54b5746bb2137078@mail.gmail.com> <314098690912042143y2a707ac8m4ec7f34a526ba1ed@mail.gmail.com> <77938bc20912231123o76591f3bnfb92c28fc5afcfa0@mail.gmail.com> <314098690912231707qa779edeic6e0f3c4e69dc6@mail.gmail.com> <24353AA4-5FE0-4614-B78A-F709E15B0193@cse.unl.edu> Date: Wed, 23 Dec 2009 18:38:13 -0800 Message-ID: <314098690912231838r4126d609j1d345a34c3217b23@mail.gmail.com> Subject: Re: Secondary NameNodes or NFS exports? From: Jason Venner To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=000e0cd1391ea5202c047b705447 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd1391ea5202c047b705447 Content-Type: text/plain; charset=ISO-8859-1 I agree, it seems very wrong, that is why I need a block of time to really verify the behavior. My test case is the following, and the same test fails in 18.3 and 19.0 and 19.1 set up a single node cluster, 1 namenode, 1 datanode, 1 secondary, all on the same machine. set the checkpoint interval to 2 minutes (120 sec) make a few files, wait, and verify that a checkpoint can happen. recursively start coping a deep tree into hdfs, what the checkpoint fail with a timestamp error. The code explicitly uses the edits.new for the checkpoint verification timestamp. The window is the time from the take of the edit log to the return of the fsimage. On Wed, Dec 23, 2009 at 5:52 PM, Brian Bockelman wrote: > Hey Jason, > > This analysis seems fairly unlikely - are you claiming that no edits can be > merged if files are being created? Isn't this what edits.new is for? > > We roll the edits log successfully during periods of high transfer, when a > new file is being created every 1 second or so. > > We have had issues with unmergeable edits before - there might be some race > conditions in this area. > > Brian > > On Dec 23, 2009, at 7:07 PM, Jason Venner wrote: > > > I have no current solution. > > When I can block a few days, I am going to instrument the code a bit more > to > > verify my understanding. > > > > I believe the issue is that the time stamp is being checked against the > > active edit log (the new one created then the checkpoint started) rather > > than the time stamp of the rolled (old) edit log. > > As long as no transactions have hit, the time stamps are the same. > > > > > > On Wed, Dec 23, 2009 at 11:23 AM, Stas Oskin > wrote: > > > >> Hi. > >> > >> What was your solution to this then? > >> > >> Regards. > >> > >> On Sat, Dec 5, 2009 at 7:43 AM, Jason Venner > >> wrote: > >> > >>> I have dug into this more, it turns out the problem is unrelated to nfs > >> or > >>> solaris. > >>> The issue is that if there is a meta data change, while the secondary > is > >>> rebuilding the fsimage, the rebuilt image is rejected. > >>> On our production cluster, there is almost never a moment where there > is > >>> not > >>> a file being created or altered, and as such the secondary is never > make > >> a > >>> fresh fsimage for the cluster. > >>> > >>> I have checked this with several hadoop variants and with vanilla > >>> distributions with the namenode, secondary and a datanode all running > on > >>> the > >>> same machine. > >>> > >>> On Tue, Oct 27, 2009 at 8:03 PM, Jason Venner >>>> wrote: > >>> > >>>> The namenode would never accept the rebuild fsimage from the > secondary, > >>> so > >>>> the edit logs grew with outbounds. > >>>> > >>>> > >>>> On Tue, Oct 27, 2009 at 10:51 AM, Stas Oskin > >>> wrote: > >>>> > >>>>> Hi. > >>>>> > >>>>> You mean, you couldn't recover the NameNode from checkpoints because > >> of > >>>>> timestamps? > >>>>> > >>>>> Regards. > >>>>> > >>>>> On Tue, Oct 27, 2009 at 4:49 PM, Jason Venner < > jason.hadoop@gmail.com > >>>>>> wrote: > >>>>> > >>>>>> We have been having some trouble with the secondary on a cluster > >> that > >>>>> has > >>>>>> one edit log partition on an nfs server, with the namenode rejecting > >>> the > >>>>>> merged images due to timestamp missmatches. > >>>>>> > >>>>>> > >>>>>> On Mon, Oct 26, 2009 at 10:14 AM, Stas Oskin > >>>>> wrote: > >>>>>> > >>>>>>> Hi. > >>>>>>> > >>>>>>> Thanks for the advice, it seems that the initial approach of > >> having > >>>>>> single > >>>>>>> SecNameNode writing to exports is the way to go. > >>>>>>> > >>>>>>> By the way, I asked this already, but wanted to clarify: > >>>>>>> > >>>>>>> * It's possible to set how often SecNameNode checkpoints the data > >>>>> (what > >>>>>> is > >>>>>>> the setting by the way)? > >>>>>>> > >>>>>>> * It's possible to let NameNode write to exports as well together > >>> with > >>>>>>> local > >>>>>>> disk, which ensures the latest possible meta-data in case of disk > >>>>> crash > >>>>>>> (compared to pereodic check-pointing), but it's going to slow down > >>> the > >>>>>>> operations due to network read/writes. > >>>>>>> > >>>>>>> Thanks again. > >>>>>>> > >>>>>>> On Thu, Oct 22, 2009 at 10:03 PM, Patrick Angeles > >>>>>>> wrote: > >>>>>>> > >>>>>>>> From what I understand, it's rather tricky to set up multiple > >>>>> secondary > >>>>>>>> namenodes. In either case, running multiple 2ndary NNs doesn't > >> get > >>>>> you > >>>>>>>> much. > >>>>>>>> See this thread: > >>>>>>>> > >>>>> > http://www.mail-archive.com/core-user@hadoop.apache.org/msg06280.html > >>>>>>>> > >>>>>>>> On Wed, Oct 21, 2009 at 10:44 AM, Stas Oskin < > >>> stas.oskin@gmail.com> > >>>>>>> wrote: > >>>>>>>> > >>>>>>>>> To clarify, it's either let single SecNameNode to write to > >>>>> multiple > >>>>>> NFS > >>>>>>>>> exports, or actually have multiple SecNameNodes. > >>>>>>>>> > >>>>>>>>> Thanks again. > >>>>>>>>> > >>>>>>>>> On Wed, Oct 21, 2009 at 4:43 PM, Stas Oskin < > >>> stas.oskin@gmail.com > >>>>>> > >>>>>>>> wrote: > >>>>>>>>> > >>>>>>>>>> Hi. > >>>>>>>>>> > >>>>>>>>>> I'm want to keep a checkpoint data on several separate > >>> machines > >>>>> for > >>>>>>>>> backup, > >>>>>>>>>> and deliberating between exporting these machines disks via > >>> NFS, > >>>>> or > >>>>>>>>> actually > >>>>>>>>>> running Secondary Name Nodes there. > >>>>>>>>>> > >>>>>>>>>> Can anyone advice what would be better in my case? > >>>>>>>>>> > >>>>>>>>>> Regards. > >>>>>>>>>> > >>>>>>>>> > >>>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> Pro Hadoop, a book to guide you from beginner to hadoop mastery, > >>>>>> http://www.amazon.com/dp/1430219424?tag=jewlerymall > >>>>>> www.prohadoopbook.com a community for Hadoop Professionals > >>>>>> > >>>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> Pro Hadoop, a book to guide you from beginner to hadoop mastery, > >>>> http://www.amazon.com/dp/1430219424?tag=jewlerymall > >>>> www.prohadoopbook.com a community for Hadoop Professionals > >>>> > >>> > >>> > >>> > >>> -- > >>> Pro Hadoop, a book to guide you from beginner to hadoop mastery, > >>> http://www.amazon.com/dp/1430219424?tag=jewlerymall > >>> www.prohadoopbook.com a community for Hadoop Professionals > >>> > >> > > > > > > > > -- > > Pro Hadoop, a book to guide you from beginner to hadoop mastery, > > http://www.amazon.com/dp/1430219424?tag=jewlerymall > > www.prohadoopbook.com a community for Hadoop Professionals > > -- Pro Hadoop, a book to guide you from beginner to hadoop mastery, http://www.amazon.com/dp/1430219424?tag=jewlerymall www.prohadoopbook.com a community for Hadoop Professionals --000e0cd1391ea5202c047b705447--