Java 类org.apache.hadoop.util.Shell.CommandExecutor 实例源码

项目:hops    文件:DefaultContainerExecutor.java   
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, 
    String containerIdStr, String user, Path pidFile, Resource resource,
    File wordDir, Map<String, String> environment)
        throws IOException {

  String[] command = getRunCommand(wrapperScriptPath,
      containerIdStr, user, pidFile, this.getConf(), resource);

    LOG.info("launchContainer: " + Arrays.toString(command));
    return new ShellCommandExecutor(
        command,
        wordDir,
        environment,
        0L,
        false);
}
项目:hadoop    文件:WindowsSecureContainerExecutor.java   
@Override
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath,
    String containerIdStr, String userName, Path pidFile, Resource resource,
    File wordDir, Map<String, String> environment) throws IOException {
   return new WintuilsProcessStubExecutor(
       wordDir.toString(),
       containerIdStr, userName, pidFile.toString(), 
       "cmd /c " + wrapperScriptPath);
 }
项目:hadoop    文件:DefaultContainerExecutor.java   
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, 
    String containerIdStr, String user, Path pidFile, Resource resource,
    File wordDir, Map<String, String> environment)
        throws IOException {

  String[] command = getRunCommand(wrapperScriptPath,
      containerIdStr, user, pidFile, this.getConf(), resource);

    LOG.info("launchContainer: " + Arrays.toString(command));
    return new ShellCommandExecutor(
        command,
        wordDir,
        environment); 
}
项目:aliyun-oss-hadoop-fs    文件:WindowsSecureContainerExecutor.java   
@Override
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath,
    String containerIdStr, String userName, Path pidFile, Resource resource,
    File wordDir, Map<String, String> environment) throws IOException {
   return new WintuilsProcessStubExecutor(
       wordDir.toString(),
       containerIdStr, userName, pidFile.toString(), 
       "cmd /c " + wrapperScriptPath);
 }
项目:aliyun-oss-hadoop-fs    文件:DefaultContainerExecutor.java   
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, 
    String containerIdStr, String user, Path pidFile, Resource resource,
    File wordDir, Map<String, String> environment)
        throws IOException {

  String[] command = getRunCommand(wrapperScriptPath,
      containerIdStr, user, pidFile, this.getConf(), resource);

    LOG.info("launchContainer: " + Arrays.toString(command));
    return new ShellCommandExecutor(
        command,
        wordDir,
        environment); 
}
项目:big-c    文件:WindowsSecureContainerExecutor.java   
@Override
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath,
    String containerIdStr, String userName, Path pidFile, Resource resource,
    File wordDir, Map<String, String> environment) throws IOException {
   return new WintuilsProcessStubExecutor(
       wordDir.toString(),
       containerIdStr, userName, pidFile.toString(), 
       "cmd /c " + wrapperScriptPath);
 }
项目:big-c    文件:DefaultContainerExecutor.java   
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, 
    String containerIdStr, String user, Path pidFile, Resource resource,
    File wordDir, Map<String, String> environment)
        throws IOException {

  String[] command = getRunCommand(wrapperScriptPath,
      containerIdStr, user, pidFile, this.getConf(), resource);

    LOG.info("launchContainer: " + Arrays.toString(command));
    return new ShellCommandExecutor(
        command,
        wordDir,
        environment); 
}
项目:hadoop-2.6.0-cdh5.4.3    文件:WindowsSecureContainerExecutor.java   
@Override
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, 
    String containerIdStr,
  String userName, Path pidFile,File wordDir, Map<String, String> environment) 
  throws IOException {

  return new WintuilsProcessStubExecutor(
      wordDir.toString(),
      containerIdStr, userName, pidFile.toString(), 
      "cmd /c " + wrapperScriptPath);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:DefaultContainerExecutor.java   
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, 
    String containerIdStr, String user, Path pidFile, File wordDir, 
    Map<String, String> environment) 
        throws IOException {

  String[] command = getRunCommand(wrapperScriptPath,
      containerIdStr, user, pidFile, this.getConf());

    LOG.info("launchContainer: " + Arrays.toString(command));
    return new ShellCommandExecutor(
        command,
        wordDir,
        environment); 
}
项目:hops    文件:WindowsSecureContainerExecutor.java   
@Override
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath,
    String containerIdStr, String userName, Path pidFile, Resource resource,
    File wordDir, Map<String, String> environment) throws IOException {
   return new WintuilsProcessStubExecutor(
       wordDir.toString(),
       containerIdStr, userName, pidFile.toString(), 
       "cmd /c " + wrapperScriptPath);
 }