public abstract static class ContainerLaunch.ShellScriptBuilder extends Object
| Constructor and Description |
|---|
ShellScriptBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
command(List<String> command) |
abstract void |
copyDebugInformation(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
Method to copy files that are useful for debugging container failures.
|
static ContainerLaunch.ShellScriptBuilder |
create() |
abstract void |
env(String key,
String value) |
protected void |
line(String... command) |
protected abstract void |
link(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
abstract void |
listDebugInformation(org.apache.hadoop.fs.Path output)
Method to dump debug information to the a target file.
|
protected abstract void |
mkdir(org.apache.hadoop.fs.Path path) |
void |
symlink(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
String |
toString() |
abstract void |
whitelistedEnv(String key,
String value) |
void |
write(PrintStream out) |
public static ContainerLaunch.ShellScriptBuilder create()
public abstract void command(List<String> command) throws IOException
IOExceptionpublic abstract void whitelistedEnv(String key, String value) throws IOException
IOExceptionpublic abstract void env(String key, String value) throws IOException
IOExceptionpublic final void symlink(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
IOExceptionpublic abstract void copyDebugInformation(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
src - path to the source filedst - path to the destination file - should be absoluteIOExceptionpublic abstract void listDebugInformation(org.apache.hadoop.fs.Path output)
throws IOException
output - the file to which debug information is to be writtenIOExceptionpublic final void write(PrintStream out) throws IOException
IOExceptionprotected final void line(String... command)
protected abstract void link(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
IOExceptionprotected abstract void mkdir(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionCopyright © 2017 Apache Software Foundation. All Rights Reserved.