* @throws CoreException
* @throws InterruptedException
* @throws IOException
*/
public ZooKeeperServer createServer(String zkServerName, String zkServerLocation) throws CoreException {
ZooKeeperServer zkServer = HadoopFactory.eINSTANCE.createZooKeeperServer();
zkServer.setName(zkServerName);
zkServer.setUri(zkServerLocation);
try {
ZooKeeperManager.INSTANCE.getClient(zkServer).connect();
} catch (Exception e) {
logger.error("Error getting children of node", e);
throw new CoreException(new Status(Status.ERROR, Activator.BUNDLE_ID, "Error in creating server",e));