logger.error("Cannot deploy app [{}], because app [{}] is already deployed", deployArgs.appName,
readData.getSimpleField("name"));
System.exit(1);
}
zkClient.create("/s4/clusters/" + deployArgs.clusterName + "/app/s4App", record, CreateMode.PERSISTENT);
logger.info(
"uploaded application [{}] to cluster [{}], using zookeeper znode [{}], and s4r file [{}]",
new String[] { deployArgs.appName, deployArgs.clusterName,
"/s4/clusters/" + deployArgs.clusterName + "/app/" + deployArgs.appName,
s4rToDeploy.getAbsolutePath() });