*/
public void restartDaemonWithNewConfig(AbstractDaemonClient client,
String configFile, Configuration conf, Enum<?> role) throws IOException {
String localDirPath = getHadoopLocalConfDir();
writeConfToFile(configFile,localDirPath,conf);
RemoteProcess daemon=clusterManager.getDaemonProcess(client.getHostName(),
role);
newConfDir = daemon.pushConfig(localDirPath);
daemon.kill();
waitForDaemonToStop(client);
daemon.start(newConfDir);
waitForDaemonToStart(client);
localFolderObj.delete();
}