Map<String, String> mapField = Maps.newHashMap();
mapField.put("k1", "v1");
mapField.put("k2", "v2");
userConfig.setMapField("sampleMap", mapField);
ResourceConfig.Delta delta = new ResourceConfig.Delta(resource.getId()).addUserConfig(userConfig);
accessor.updateResource(resource.getId(), delta);
}
private static void createCluster(ClusterConfig cluster, HelixConnection connection) {
ClusterAccessor accessor = connection.createClusterAccessor(cluster.getId());
accessor.createCluster(cluster);