chuckfinley
chuckfinley

Reputation: 763

Is the Hadoop read-only default configuration file core-default.xml read at startup?

Is the file described in the documentation as a read-only configuration file, src/core/core-default.xml, used by Hadoop at startup? Some of the docs say to copy this file to conf/core-site.xml and make changes and some say to include only those properties being changed. If the latter is the case, it seems the core-default.xml file is necessary.

Upvotes: 1

Views: 1247

Answers (2)

padmalcom
padmalcom

Reputation: 1459

Just another information which may be interesting here: If you use the constructor of YarnConfiguration yarn-default.xml and yarn-site.xml are read additionally.

Upvotes: 1

Erik Nedwidek
Erik Nedwidek

Reputation: 6184

core-default.xml is loaded first and then core-site.xml is overlayed on that. core-site.xml will only contain the values that need to be changed from the default.

See the resources section at the top of: http://hadoop.apache.org/docs/current/api/org/apache/hadoop/conf/Configuration.html

Upvotes: 1

Related Questions