Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDC571194D for ; Tue, 15 Jul 2014 15:42:05 +0000 (UTC) Received: (qmail 8275 invoked by uid 500); 15 Jul 2014 15:42:05 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 8223 invoked by uid 500); 15 Jul 2014 15:42:05 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 8204 invoked by uid 99); 15 Jul 2014 15:42:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2014 15:42:05 +0000 Date: Tue, 15 Jul 2014 15:42:05 +0000 (UTC) From: "Danilo Vunjak (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-6597) Add a new option to NN upgrade to terminate the process after upgrade on NN is completed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-6597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Danilo Vunjak updated HDFS-6597: -------------------------------- Attachment: JIRA-HDFS-6597.03.patch > Add a new option to NN upgrade to terminate the process after upgrade on NN is completed > ---------------------------------------------------------------------------------------- > > Key: HDFS-6597 > URL: https://issues.apache.org/jira/browse/HDFS-6597 > Project: Hadoop HDFS > Issue Type: Improvement > Components: namenode > Reporter: Danilo Vunjak > Attachments: JIRA-HDFS-30.patch, JIRA-HDFS-6597.02.patch, JIRA-HDFS-6597.03.patch, JIRA-HDFS-6597.patch > > > Currently when namenode is started for upgrade (hadoop namenode -upgrade command), after finishing upgrade of metadata, namenode starts working normally and wait for datanodes to upgrade itself and connect to to NN. We need to have option for upgrading only NN metadata, so after upgrade is finished on NN, process should terminate. > I have tested it by changing in file: hdfs.server.namenode.NameNode.java, method: public static NameNode createNameNode(String argv[], Configuration conf): > in switch added > case UPGRADE: > case UPGRADE: > { > DefaultMetricsSystem.initialize("NameNode"); > NameNode nameNode = new NameNode(conf); > if (startOpt.getForceUpgrade()) { > terminate(0); > return null; > } > > return nameNode; > } > This did upgrade of metadata, closed process after finished, and later when all services were started, upgrade of datanodes finished sucessfully and system run . > What I'm suggesting right now is to add new startup parameter "-force", so namenode can be started like this "hadoop namenode -upgrade -force", so we can indicate that we want to terminate process after upgrade metadata on NN is finished. Old functionality should be preserved, so users can run "hadoop namenode -upgrade" on same way and with same behaviour as it was previous. > Thanks, > Danilo -- This message was sent by Atlassian JIRA (v6.2#6252)