* @param zkString
* ZooKeeper connection string (connection to the cluster manager)
*/
public static void initAppConfig(AppConfig appConfig, String clusterName, boolean deleteIfExists, String zkString) {
ZkClient zk = new ZkClient(zkString);
ZkSerializer serializer = new ZNRecordSerializer();
zk.setZkSerializer(serializer);
if (zk.exists("/s4/clusters/" + clusterName + "/app/s4App")) {
if (deleteIfExists) {
zk.delete("/s4/clusters/" + clusterName + "/app/s4App");