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 9245F1167F for ; Thu, 24 Jul 2014 05:58:48 +0000 (UTC) Received: (qmail 27425 invoked by uid 500); 24 Jul 2014 05:58:44 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 27312 invoked by uid 500); 24 Jul 2014 05:58:44 -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 27291 invoked by uid 99); 24 Jul 2014 05:58:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 05:58:43 +0000 X-ASF-Spam-Status: No, hits=2.6 required=5.0 tests=HTML_IMAGE_ONLY_16,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sshi@gopivotal.com designates 209.85.192.178 as permitted sender) Received: from [209.85.192.178] (HELO mail-pd0-f178.google.com) (209.85.192.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 05:58:41 +0000 Received: by mail-pd0-f178.google.com with SMTP id w10so3046615pde.9 for ; Wed, 23 Jul 2014 22:58:16 -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:date :message-id:subject:from:to:content-type; bh=QL1XMVAut0lu8szVB5JU+FEaZr/dggCDmXZiZQc/1kA=; b=l653/1qXNjCBjFHl4KIYxYr9R8A9dA9LP5G18tVdhg+uPAe2dpn1D82E7wuZ1Tyycj 9693aI7IsY6r3zZp49BfQch6/Pnw0ZTQgs7vzisuhCi9MXh0XXlMrOxWbCF53OaRt/zv h4hA8VvBuN4QBLDbCIrNmDkTRnrBUVvgrup5n8bZhAkoQn1eoTDqxvWFQUTia6O/j3r0 aZ5X0bmuvhSBi0Gz/Fm7cI7LBaJ2bPHpdxkKf/VX31GGH5g+aF/Mi2lZH1fQ6a7vltc+ 1jbGbs3TDawVuRa1TEtCzRUlNl1uLijhfKwpx6wdoc+eRhv/5Lrr6K6s0Gtd0tYFFVph 6OXA== X-Gm-Message-State: ALoCoQkCxQN8DzhKbzjz38BmQf5kGgSO0QFrA+yx4q5grVsPUr8QnzS0luuEAvYR1BBN0DYAw8pF MIME-Version: 1.0 X-Received: by 10.70.103.45 with SMTP id ft13mr7578566pdb.152.1406181496446; Wed, 23 Jul 2014 22:58:16 -0700 (PDT) Received: by 10.70.2.101 with HTTP; Wed, 23 Jul 2014 22:58:16 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Jul 2014 13:58:16 +0800 Message-ID: Subject: Re: how to reduce delay in HDFS restart From: Stanley Shi To: "user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=001a11c337f695fd0f04feea24af X-Virus-Checked: Checked by ClamAV on apache.org --001a11c337f695fd0f04feea24af Content-Type: text/plain; charset=UTF-8 Do you have a secondary namenode running? Secondary NN is used for this purpose; Also, if you have HDFS HA enabled, this problem will also not occur. Regards, *Stanley Shi,* On Tue, Jul 22, 2014 at 7:24 AM, Anfernee Xu wrote: > Hi, > > For some reason, all PIDs file are missing in my cluster, I have to > manually kill all java processes on all machines, then I restarted the > HDFS, but it took so long time in applying changes in edit log file, so my > question is how can I reduce the delay? My understanding is as follows, > could someone please give some comments on it? > > hadoop dfsadmin -safemode enter > > #save current in-mem data to image file and reset edit log > hadoop dfsadmin -saveNamespace > > > -- > --Anfernee > --001a11c337f695fd0f04feea24af Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Do you have a secondary namenode running? Secondary NN is = used for this purpose;
Also, if you have HDFS HA enabled, this problem w= ill also not occur.

<= div>
Regards,
Stanley Shi,



On Tue, Jul 22, 2014 at 7:24 AM, Anferne= e Xu <anfernee.xu@gmail.com> wrote:
Hi,

For some reason, all PIDs file are = missing in my cluster, I have to manually kill all java processes on all ma= chines, then I restarted the HDFS, but it took so long time in applying cha= nges in edit log file, so my question is how can I reduce the delay? My und= erstanding is as follows, could someone please give some comments on it?

=C2=A0 =C2=A0 hadoop dfsadmin -safemode enter

=C2=A0 =C2=A0 #save current in-mem data to image file = and reset edit log
=C2=A0 =C2=A0 hadoop dfsadmin -saveNamespace


--
--Anfernee

--001a11c337f695fd0f04feea24af--