public class SshHadoopScriptHandler extends ProcessHadoopScriptHandler
HadoopScriptHandler using local processes.
This handler just launches a command with following arguments in its tail.
Additionally, the handler lanuches a command if hadoop.cleanup is true.
ProcessHadoopScriptHandler.CLEANUP_STAGE_CLASS batch-id flow-id execution-id batch-arguments
# <position> = 0, 1, 2, ...
# <prefix command token> can contain "@[position],"
# this will be replaced as original command tokens (0-origin position)
hadoop = <this class name>
hadoop.command.<position> = $<prefix command token>
hadoop.ssh.user=asakusa
hadoop.ssh.host=localhost
hadoop.ssh.port=22
hadoop.ssh.privateKey=${HOME}/.ssh/id_dsa
hadoop.ssh.passPhrase=
hadoop.env.ASAKUSA_HOME = ${ASAKUSA_HOME}
hadoop.cleanup = whether enables cleanup
hadoop.env.<key> = $<extra environment variables>
hadoop.prop.<key> = $<extra Hadoop properties>
CLEANUP_STAGE_CLASS, KEY_CLEANUP, KEY_WORKING_DIRECTORY, PATH_EXECUTE, VAR_BATCH_ID, VAR_EXECUTION_ID, VAR_FLOW_IDDEFAULT_RESOURCE_ID, ENV_EXTENSION_PREFIX, KEY_ENV_PREFIX, KEY_PROP_PREFIX, KEY_RESOURCE| Constructor and Description |
|---|
SshHadoopScriptHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureExtension(ServiceProfile<?> profile)
Configures this handler internally (extension point).
|
protected ProcessExecutor |
getCommandExecutor()
Returns command executor for this handler (extension point).
|
cleanUp, doConfigure, execute, getPathSegmentSeparatorconfigure, getEnvironmentVariables, getHandlerId, getProperties, getResourceId, setUp, voidCleanUp, voidSetUpclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnvironmentVariables, getHandlerId, getProperties, getResourceId, setUpprotected void configureExtension(ServiceProfile<?> profile) throws InterruptedException, IOException
ProcessHadoopScriptHandlerconfigureExtension in class ProcessHadoopScriptHandlerprofile - the profile of this serviceInterruptedException - if interrupted in configurationIOException - if failed to configure this serviceprotected ProcessExecutor getCommandExecutor()
ProcessHadoopScriptHandlergetCommandExecutor in class ProcessHadoopScriptHandlerCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.