public class RemoteShell
extends org.apache.hadoop.util.Shell.ShellCommandExecutor
Shell.ShellCommandExecutor, on a remote host. SSH
configuration provided by RemoteShellOptions.| Modifier and Type | Field and Description |
|---|---|
protected String |
hostname |
protected RemoteShellOptions |
options |
FREEBSD, isSetsidAvailable, LINK_COMMAND, LINUX, LOG, MAC, osType, OTHER, PPC_64, READ_LINK_COMMAND, SET_GROUP_COMMAND, SET_OWNER_COMMAND, SET_PERMISSION_COMMAND, SOLARIS, timeOutInterval, TOKEN_SEPARATOR_REGEX, USER_NAME_COMMAND, WINDOWS, WINDOWS_MAX_SHELL_LENGHT, WindowsProcessLaunchLock, WINUTILS| Constructor and Description |
|---|
RemoteShell(String hostname,
String[] execString,
File dir,
Map<String,String> env,
long timeout,
RemoteShellOptions options) |
RemoteShell(String hostname,
String[] execString,
File dir,
Map<String,String> env,
RemoteShellOptions options) |
RemoteShell(String hostname,
String[] execString,
File dir,
RemoteShellOptions options) |
RemoteShell(String hostname,
String[] execString,
RemoteShellOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
String[] |
getExecString() |
RemoteShellOptions |
getRemoteShellOptions() |
void |
setRemoteShellOptions(RemoteShellOptions options) |
close, getOutput, parseExecResult, toStringappendScriptExtension, appendScriptExtension, checkWindowsCommandLineLength, execCommand, execCommand, execCommand, getCheckProcessIsAliveCommand, getEnvironment, getEnvironmentVariableRegex, getExitCode, getGetPermissionCommand, getGroupsCommand, getGroupsForUserCommand, getHadoopHome, getProcess, getQualifiedBinPath, getReadlinkCommand, getRunScriptCommand, getSetOwnerCommand, getSetPermissionCommand, getSetPermissionCommand, getSignalKillCommand, getSymlinkCommand, getUsersForNetgroupCommand, getWinUtilsPath, isJava7OrAbove, isTimedOut, run, setEnvironment, setWorkingDirectoryprotected RemoteShellOptions options
protected String hostname
public RemoteShell(String hostname, String[] execString, File dir, Map<String,String> env, long timeout, RemoteShellOptions options)
public RemoteShell(String hostname, String[] execString, File dir, Map<String,String> env, RemoteShellOptions options)
public RemoteShell(String hostname, String[] execString, File dir, RemoteShellOptions options)
public RemoteShell(String hostname, String[] execString, RemoteShellOptions options)
public void setRemoteShellOptions(RemoteShellOptions options)
public RemoteShellOptions getRemoteShellOptions()
public String[] getExecString()
getExecString in class org.apache.hadoop.util.Shell.ShellCommandExecutorpublic void execute()
throws IOException
execute in interface org.apache.hadoop.util.Shell.CommandExecutorexecute in class org.apache.hadoop.util.Shell.ShellCommandExecutorIOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.