You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Owen O'Malley <ow...@yahoo-inc.com> on 2006/04/28 23:24:47 UTC

don't include hadoop-default.xml in external HADOOP_CONF_DIR

Hi all,
    I just wanted to point out a mis-configuration that just bit me 
today so that others can avoid the problem. My setup looks like:

HADOOP_HOME=<prefix>/hadoop-0.2-dev
HADOOP_CONF_DIR=<prefix>/conf

HADOOP_CONF_DIR had:
configuration.xsl*
hadoop-default.xml
hadoop-env.sh*
hadoop-site.xml*
mapred-default.xml*
slaves*

And when I upgrade, I only update HADOOP_HOME. The problem was that one 
of the recent changes added some properties into hadoop-default.xml 
that were different from their defaults in the code. Since the property 
wasn't in my hadoop-default.xml, it used the compiled default value. 
*crash* *bang*

After discussing it with Doug, the proper setup is to get 
hadoop-default.xml out of the jar file, so that it always current with 
respect to your distribution. After I deleted hadoop-default.xml out of 
my conf directory, it worked great.

-- Owen