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

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

Guillaume Polaert 2012-10-12, 11:43
Harsh J 2012-10-12, 15:20
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
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= ...
> 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= -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