@@ -0,0 +1,1313 @@
+package nz.org.hikari.cat.ncdc_download;%0A%0Aimport java.util.Map.Entry;%0Aimport java.util.TreeMap;%0A%0Aimport org.apache.hadoop.conf.Configuration;%0Aimport org.apache.hadoop.conf.Configured;%0Aimport org.apache.hadoop.util.Tool;%0Aimport org.apache.hadoop.util.ToolRunner;%0A%0A// Print Hadoop configuration, taken from Tom White, %22Hadoop: The Definitive Guide%22%0A// (4th ed, O'Reilly, 2015), p. 149%0A%0Apublic class ConfigurationPrinter extends Configured implements Tool %7B%0A%0A%09static %7B%0A%09%09Configuration.addDefaultResource(%22hdfs-default.xml%22);%0A%09%09Configuration.addDefaultResource(%22hdfs-site.xml%22);%0A%09%09Configuration.addDefaultResource(%22mapred-default.xml%22);%0A%09%09Configuration.addDefaultResource(%22mapred-site.xml%22);%0A%09%09Configuration.addDefaultResource(%22yarn-default.xml%22);%0A%09%09Configuration.addDefaultResource(%22yarn-site.xml%22);%0A%09%7D%0A%0A%09@Override%0A%09public int run(String%5B%5D args) throws Exception %7B%0A%09%09Configuration conf = getConf();%0A%09%09TreeMap%3CString, String%3E map = new TreeMap%3C%3E();%0A%09%09for (Entry%3CString, String%3E entry : conf) %7B%0A%09%09%09map.put(entry.getKey(), entry.getValue());%0A%09%09%7D%0A%09%09for (Entry%3CString, String%3E entry : map.entrySet()) %7B%0A%09%09%09System.out.printf(%22%25s=%25s%5Cn%22, entry.getKey(), entry.getValue());%0A%09%09%7D%0A%09%09return 0;%0A%09%7D%0A%09%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%09%09System.exit(ToolRunner.run(new ConfigurationPrinter(), args));%0A%09%7D%0A%0A%7D%0A

Add ConfigurationPrinter because it's useful to have