Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Start NN with dynamic property (option -D)


Copy link to this message
-
RE: Start NN with dynamic property (option -D)
It's a good news, I'll try it soon.
Thanks you :)

Guillaume Polaert

-----Message d'origine-----
De : Harsh J [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 12 octobre 2012 17:21
À : [EMAIL PROTECTED]
Objet : 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 files have <value>${foo}</value> and HADOOP_NAMENODE_OPTS has -Dfoo=bar, then the <value> passed in is bar.

Hope this helps!

On Fri, Oct 12, 2012 at 5:13 PM, Guillaume Polaert <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to start a NN using the -Dproperty=value functionality.
> I've modified hadoop-env.sh like this :
>    export HADOOP_NAMENODE_OPTS= ... -Ddfs.namenode.http-address=0.0.0.0:50071 ...
>
> and I've launched the daemon with hadoop-hdfs-namenode script.
>
> ps -efHww returns  ".../java -Dproc_namenode ... -Dhadoop.security.logger=INFO,RFAS -Ddfs.namenode.http-address=0.0.0.0:50071 -Dhdfs.audit.logger=INFO,NullAppender ..."
>
> But the property has always the same value : 50070 (default port).
>
> Is "-D-substitution" working for this use case ?
>
> Thanks, Guillaume
>

--
Harsh J