@@ -0,0 +1,1193 @@
+//This will test the value for the JVM TTL for DNS lookups.%0A//http://docs.aws.amazon.com/AWSSdkDocsJava/latest/DeveloperGuide/java-dg-jvm-ttl.html%0A%0A%0Apackage com.amazonaws.vivanih.hadoop.cascading;%0Aimport java.lang.String;%0Aimport java.io.*;%0Aimport sun.net.InetAddressCachePolicy;%0A%0Apublic class Main %7B%0A%0A        public static void main(String%5B%5D args) %7B%0A        String p = %22networkaddress.cache.ttl%22;%0A%0A        // property at startup.%0A        System.out.println(String.format(%22initial: %25s%22, System.getProperty(p)));%0A%0A        System.setProperty(%22networkaddress.cache.ttl%22,%2259%22);%0A%0A        // if networkaddress.cache.ttl is not set in java.security,%0A        // a default value of 30 is returned.%0A        System.out.println(String.format(%22get: %25d%22,InetAddressCachePolicy.get()));%0A%0A        // this will throw claiming we cannot make the setting more lax.%0A        InetAddressCachePolicy.setIfNotSet(15);%0A        System.out.println(String.format(%22get: %25d%22,InetAddressCachePolicy.get()));%0A%0A        //try to set with another method%0A        java.security.Security.setProperty(%22networkaddress.cache.ttl%22 , %2260%22);%0A        System.out.println(String.format(%22get: %25d%22,InetAddressCachePolicy.get()));%0A        %7D%0A%0A%7D%0A

Create Main.java