Package org.apache.hadoop.test.system.process

Examples of org.apache.hadoop.test.system.process.RemoteProcess


   */
  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();
  }
View Full Code Here


   * @param client points to the daemon that will restarted.
   * @param role  of remote process such as JT,TT,NN,DN
   * @throws IOException is thrown when restart fails
   */
  public void restart(AbstractDaemonClient client,Enum<?> role) throws IOException {
    RemoteProcess daemon=clusterManager.getDaemonProcess(client.getHostName(),
        role);
    daemon.kill();
    waitForDaemonToStop(client);
    daemon.start();
    waitForDaemonToStart(client);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.test.system.process.RemoteProcess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.