hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Praveen Sripati <praveensrip...@gmail.com>
Subject Hadoop Configuration Files
Date Sat, 24 Sep 2011 13:52:07 GMT
Hi,

Where are the Hadoop configuration files (hdfs-*.xml and mapred-*.xml)  read
in the code? In the org.apache.hadoop.conf.Configuration class, the
following code is in the static block.

    if(cL.getResource("hadoop-site.xml")!=null) {
      LOG.warn("DEPRECATED: hadoop-site.xml found in the classpath. " +
          "Usage of hadoop-site.xml is deprecated. Instead use
core-site.xml, "
          + "mapred-site.xml and hdfs-site.xml to override properties of " +
          "core-default.xml, mapred-default.xml and hdfs-default.xml " +
          "respectively");
    }
    addDefaultResource("core-default.xml");
    addDefaultResource("core-site.xml");

Thanks,
Praveen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message