Class RemoteShell

  • All Implemented Interfaces:
    org.apache.hadoop.util.Shell.CommandExecutor

    public class RemoteShell
    extends org.apache.hadoop.util.Shell.ShellCommandExecutor
    Execute a command, leveraging Hadoop's Shell.ShellCommandExecutor, on a remote host. SSH configuration provided by RemoteShellOptions.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.hadoop.util.Shell

        org.apache.hadoop.util.Shell.CommandExecutor, org.apache.hadoop.util.Shell.ExitCodeException, org.apache.hadoop.util.Shell.OSType, org.apache.hadoop.util.Shell.ShellCommandExecutor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String hostname  
      protected RemoteShellOptions options  
      • Fields inherited from class org.apache.hadoop.util.Shell

        ENV_HADOOP_HOME, ENV_NAME_REGEX, FREEBSD, inheritParentEnv, isSetsidAvailable, LINK_COMMAND, LINUX, LOG, MAC, osType, OTHER, PPC_64, READ_LINK_COMMAND, SET_GROUP_COMMAND, SET_OWNER_COMMAND, SET_PERMISSION_COMMAND, SOLARIS, SYSPROP_HADOOP_HOME_DIR, timeOutInterval, TOKEN_SEPARATOR_REGEX, USER_NAME_COMMAND, WINDOWS, WINDOWS_MAX_SHELL_LENGHT, WINDOWS_MAX_SHELL_LENGTH, WindowsProcessLaunchLock, WINUTILS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      String[] getExecString()  
      RemoteShellOptions getRemoteShellOptions()  
      void setRemoteShellOptions​(RemoteShellOptions options)  
      • Methods inherited from class org.apache.hadoop.util.Shell.ShellCommandExecutor

        close, getOutput, getTimeoutInterval, parseExecResult, toString
      • Methods inherited from class org.apache.hadoop.util.Shell

        appendScriptExtension, appendScriptExtension, checkIsBashSupported, checkWindowsCommandLineLength, destroyAllShellProcesses, execCommand, execCommand, execCommand, getAllShells, getCheckProcessIsAliveCommand, getEnvironment, getEnvironmentVariableRegex, getExitCode, getGetPermissionCommand, getGroupsCommand, getGroupsForUserCommand, getGroupsIDForUserCommand, getHadoopHome, getMemlockLimit, getProcess, getQualifiedBin, getQualifiedBinPath, getReadlinkCommand, getRunScriptCommand, getSetOwnerCommand, getSetPermissionCommand, getSetPermissionCommand, getSignalKillCommand, getSymlinkCommand, getUsersForNetgroupCommand, getWaitingThread, getWinUtilsFile, getWinUtilsPath, hasWinutilsPath, isJava7OrAbove, isJavaVersionAtLeast, isTimedOut, run, setEnvironment, setWorkingDirectory
      • Methods inherited from interface org.apache.hadoop.util.Shell.CommandExecutor

        getExitCode