Package org.apache.hive.ptest.execution.ssh

Examples of org.apache.hive.ptest.execution.ssh.NonZeroExitCodeException


      throws IOException, InterruptedException, NonZeroExitCodeException {
    CollectLogPolicy localCollector = new CollectLogPolicy(logger);
    command = Templates.getTemplateResult(command, templateDefaults);
    LocalCommand localCmd = localCommandFactory.create(localCollector, command);
    if(localCmd.getExitCode() != 0) {
      throw new NonZeroExitCodeException(String.format(
          "Command '%s' failed with exit status %d and output '%s'",
          command, localCmd.getExitCode(), localCollector.getOutput()));
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hive.ptest.execution.ssh.NonZeroExitCodeException

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.