public class MapReduce
{
public static void main(String[] args)
{
File f = new File(“/usr/lib/hadoop/etc/hadoop/core-site.xml”);
Configuration conf = new Configuration();
conf.addResource(new Path(“/usr/lib/hadoop/etc/hadoop/hdfs-site.xml”));

for (Entry entry : conf)
{
System.out.println(“Key ” + entry.getKey());
System.out.println(“Value ” + entry.getValue());
}
}
}

Comments are closed.