protected abstract class DefaultContainerExecutor.LocalWrapperScriptBuilder
extends java.lang.Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
LocalWrapperScriptBuilder(org.apache.hadoop.fs.Path containerWorkDir) |
Create an instance for the given container working directory.
|
| Modifier and Type | Method | 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,
java.io.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 java.io.IOException
launchDst - the script to launchpidFile - the file that will hold the PIDjava.io.IOException - if the wrapper script cannot be createdgetWrapperScriptPath()protected abstract void writeLocalWrapperScript(org.apache.hadoop.fs.Path launchDst,
org.apache.hadoop.fs.Path pidFile,
java.io.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–2025 Apache Software Foundation. All rights reserved.