protected abstract class DefaultContainerExecutor.LocalWrapperScriptBuilder extends Object
Modifier | Constructor and Description |
---|---|
protected |
LocalWrapperScriptBuilder(org.apache.hadoop.fs.Path containerWorkDir)
Create an instance for the given container working directory.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.Path |
getWrapperScriptPath()
Return the path for the wrapper script.
|
void |
writeLocalWrapperScript(org.apache.hadoop.fs.Path launchDst,
org.apache.hadoop.fs.Path pidFile)
Write out the wrapper script for the container launch script.
|
protected abstract void |
writeLocalWrapperScript(org.apache.hadoop.fs.Path launchDst,
org.apache.hadoop.fs.Path pidFile,
PrintStream pout)
Write out the wrapper script for the container launch script.
|
protected LocalWrapperScriptBuilder(org.apache.hadoop.fs.Path containerWorkDir)
containerWorkDir
- the working directory for the containerpublic org.apache.hadoop.fs.Path getWrapperScriptPath()
public void writeLocalWrapperScript(org.apache.hadoop.fs.Path launchDst, org.apache.hadoop.fs.Path pidFile) throws IOException
launchDst
- the script to launchpidFile
- the file that will hold the PIDIOException
- if the wrapper script cannot be createdgetWrapperScriptPath()
protected abstract void writeLocalWrapperScript(org.apache.hadoop.fs.Path launchDst, org.apache.hadoop.fs.Path pidFile, PrintStream pout)
launchDst
- the script to launchpidFile
- the file that will hold the PIDpout
- the stream to use to write out the wrapper scriptCopyright © 2008–2023 Apache Software Foundation. All rights reserved.