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
Post a Comment