Configuration conf = new Configuration(); conf.set("fs.defaultFS", "hdfs://localhost:9000");
Configuration conf = new Configuration(); String defaultFS = conf.get("fs.defaultFS");
Configuration conf = new Configuration(); conf.addResource(new Path("/path/to/hadoop-conf/core-site.xml"));This code example loads the configuration properties from the core-site.xml file located at /path/to/hadoop-conf. Overall, the org.apache.hadoop.conf.Configuration package library provides a comprehensive API for handling configuration files in Hadoop. It is an essential package for any Hadoop developer to be familiar with.