System.out.println("Populating zookeeper with d2 configuration");
//d2Config is the utility class for populating zookeeper with our topology
//some the params are not needed for this simple example so we will just use
//default value by passing an empty map
D2Config d2Config = new D2Config(zkConnectString, zkSessionTimeout, zkBasePath,
zkSessionTimeout, zkRetryLimit,
(Map<String, Object>)Collections.EMPTY_MAP,
serviceDefaults,
clusterServiceConfigurations,
(Map<String, Object>)Collections.EMPTY_MAP,
(Map<String, Object>)Collections.EMPTY_MAP);
//populate zookeeper
d2Config.configure();
System.out.println("Finished populating zookeeper with d2 configuration");
}