hadoop - Use of core-site.xml in mapreduce program -


i have seen mapreduce programs using/adding core-site.xml resource in program. or how can core-site.xml used in mapreduce programs ?

from documentation, unless explicitly turned off, hadoop default specifies 2 resources, loaded in-order classpath:

core-default.xml : read-only defaults hadoop, core-site.xml: site-specific configuration given hadoop installation

configuration config = new configuration(); config.addresource(new path("/user/hadoop/core-site.xml"));  config.addresource(new path("/user/hadoop/hdfs-site.xml"));  

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -