Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 6836310238 for ; Tue, 15 Oct 2013 21:00:41 +0000 (UTC) Received: (qmail 95920 invoked by uid 500); 15 Oct 2013 21:00:32 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 95788 invoked by uid 500); 15 Oct 2013 21:00:31 -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 95781 invoked by uid 99); 15 Oct 2013 21:00:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 21:00:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jing@hortonworks.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qa0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 21:00:24 +0000 Received: by mail-qa0-f41.google.com with SMTP id f11so3865389qae.0 for ; Tue, 15 Oct 2013 14:00:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=VjmeirROyrJw6N4YFq0hZDwGo/5MQoADk6GX8EjOhxw=; b=OLhU6Iz5lfTER9DoIGv2qa2Qc2xtoHouzzRpef6na14SyXaU7+vcveQB/SDboEOJpC unjcymIUoQ3kWAtIdAsUm4cgUq7eSz4uAnxjUKM0zWv6zIftyW7P2wZOrD/0IgGGiKI8 Nu4mgMWLW+yo9CC1OMcqOTq0FMBIQ4k4nZ5glDGn4+2y8IbxZEStAdO1AYWFYYEH6pIA SWyMWG3Lv2boQijDWTPP4Va0EMqJwTT1iXWUoCpFZFLpxxgzsxHYGcOAY6Q4bgJ1NlWA +j4WrYy00r8sXECVb/Z8Cn63hVwXZBfvpVYx0eKhodqVNtYFSf08xVHh+7fzI7KJUJUw dfFw== X-Gm-Message-State: ALoCoQkDxPWZIHgz1EHJmGPLkvHNppVoohqnwFLbscZSNHcZoH99mjNEr/1QM8/lOMuXa1jjyl07gFKuq6FHMvdqZuJ+mqj4GP0Nwpbqf9oJaBcCR/9M+yI= X-Received: by 10.224.40.138 with SMTP id k10mr33038916qae.67.1381870803843; Tue, 15 Oct 2013 14:00:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.51.51 with HTTP; Tue, 15 Oct 2013 13:59:43 -0700 (PDT) In-Reply-To: References: From: Jing Zhao Date: Tue, 15 Oct 2013 13:59:43 -0700 Message-ID: Subject: Re: high availability To: user@hadoop.apache.org Content-Type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org I think a real fencing is not required in case that you're using QJM-based HA. If you are using ZKFC, a graceful fencing will first be triggered in which ZKFC will send a RPC request to the original ANN to make it standby. If the graceful fencing failed the configured fencing will be used. In the worst case that your original ANN cannot transition to standby state, QJM still has built-in single-writer semantics (see https://issues.apache.org/jira/browse/HDFS-3862, https://issues.apache.org/jira/browse/HDFS-4915). Thus you can set the fence method to shell(/bin/true) (since in the current code the fence configuration is still required). On Tue, Oct 15, 2013 at 12:11 PM, Koert Kuipers wrote: > Jing, > thanks for your answer. > > if hbase with high availability is the desired goal, is it recommended to > remove sshfence? we do not plan to use hdfs for anything else. > > i understood that the only downside of no fencing is that the old namenode > could still be serving read requests. could this negatively impact hbase > functionality, or worse, could it corrupt hbase somehow (not sure how that > would be...)? > > thanks! koert > > > > On Tue, Oct 15, 2013 at 12:38 AM, Jing Zhao wrote: >> >> "it is unclear to me if the transition in this case is also rapid but >> the fencing takes long while the new namenode is already active, or if >> in this period i am stuck without an active namenode." >> >> The standby->active transition will get stuck in this period, i.e., >> the NN can only become active after fencing the old active NN. During >> this period since the only NN is in standby state which cannot handle >> usual R/W operations and just throws StandbyException, hbase region >> server may kill itself in some cases I guess. >> >> I think you can remove sshfence from the configuration if you are >> using QJM-based HA. >> >> On Fri, Oct 11, 2013 at 4:51 PM, Koert Kuipers wrote: >> > i have been playing with high availability using journalnodes and 2 >> > masters >> > both running namenode and hbase master. >> > >> > when i kill the namenode and hbase-master processes on the active >> > master, >> > the failover is perfect. hbase never stops and a running map-reduce jobs >> > keeps going. this is impressive! >> > >> > however when instead of killing the proceses i kill the entire active >> > master >> > machine, the transactions is less smooth and can take a long time, at >> > least >> > it seems this way in the logs. this is because ssh fencing fails but >> > keeps >> > trying. my fencing is configured as: >> > >> > >> > dfs.ha.fencing.methods >> > >> > sshfence >> > shell(/bin/true) >> > >> > true >> > >> > >> > it is unclear to me if the transition in this case is also rapid but the >> > fencing takes long while the new namenode is already active, or if in >> > this >> > period i am stuck without an active namenode. it is hard to accurately >> > test >> > this in my setup. >> > is this supposed to take this long? is HDFS writable in this period? and >> > is >> > hbase supposed to survive this long transition? >> > >> > thanks! koert >> >> -- >> CONFIDENTIALITY NOTICE >> NOTICE: This message is intended for the use of the individual or entity >> to >> which it is addressed and may contain information that is confidential, >> privileged and exempt from disclosure under applicable law. If the reader >> of this message is not the intended recipient, you are hereby notified >> that >> any printing, copying, dissemination, distribution, disclosure or >> forwarding of this communication is strictly prohibited. If you have >> received this communication in error, please contact the sender >> immediately >> and delete it from your system. Thank You. > > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.