Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 B7E59D1D4 for ; Fri, 12 Oct 2012 19:57:18 +0000 (UTC) Received: (qmail 81949 invoked by uid 500); 12 Oct 2012 19:57:14 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 81868 invoked by uid 500); 12 Oct 2012 19:57:13 -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 81859 invoked by uid 99); 12 Oct 2012 19:57:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 19:57:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gpolaert@cyres.fr designates 91.206.156.37 as permitted sender) Received: from [91.206.156.37] (HELO edge.cyres.fr) (91.206.156.37) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 19:57:08 +0000 Received: from CYRES-FE2010-B.ad.cyres.fr (172.31.1.36) by CYRES-EDGE2010.dmz.cyres.fr (91.206.156.37) with Microsoft SMTP Server (TLS) id 14.1.355.2; Fri, 12 Oct 2012 21:56:40 +0200 Received: from CYRES-BE2010-A.ad.cyres.fr ([fe80::cc1:6bf1:89fe:76e3]) by CYRES-FE2010-B.ad.cyres.fr ([fe80::adb0:8215:98fd:455e%10]) with mapi id 14.01.0339.001; Fri, 12 Oct 2012 21:56:46 +0200 From: Guillaume Polaert To: "user@hadoop.apache.org" Subject: RE: Start NN with dynamic property (option -D) Thread-Topic: Start NN with dynamic property (option -D) Thread-Index: AQHNqG7KaHbZMaoOqUS4BzqK4RSCEZe1p/OAgABuOHA= Date: Fri, 12 Oct 2012 19:56:46 +0000 Message-ID: References: In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.31.1.13] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org It's a good news, I'll try it soon. Thanks you :) Guillaume Polaert=20 -----Message d'origine----- De=A0: Harsh J [mailto:harsh@cloudera.com]=20 Envoy=E9=A0: vendredi 12 octobre 2012 17:21 =C0=A0: user@hadoop.apache.org Objet=A0: Re: Start NN with dynamic property (option -D) Hi Guillaume, See https://issues.apache.org/jira/browse/HDFS-2580 - This improvement was = recently added to trunk but is not in any Apache release I know of yet. I instead make things like this work via the Configuration's ability to use= System Properties (from the JVM) when substituting. So if your config file= s have ${foo} and HADOOP_NAMENODE_OPTS has -Dfoo=3Dbar, then= the passed in is bar. Hope this helps! On Fri, Oct 12, 2012 at 5:13 PM, Guillaume Polaert wrot= e: > Hello, > > I'm trying to start a NN using the -Dproperty=3Dvalue functionality. > I've modified hadoop-env.sh like this : > export HADOOP_NAMENODE_OPTS=3D ... -Ddfs.namenode.http-address=3D0.0.0= .0:50071 ... > > and I've launched the daemon with hadoop-hdfs-namenode script. > > ps -efHww returns ".../java -Dproc_namenode ... -Dhadoop.security.logger= =3DINFO,RFAS -Ddfs.namenode.http-address=3D0.0.0.0:50071 -Dhdfs.audit.logge= r=3DINFO,NullAppender ..." > > But the property has always the same value : 50070 (default port). > > Is "-D-substitution" working for this use case ? > > Thanks, Guillaume > -- Harsh J