public class ScriptLoader extends Object
Modifier and Type | Field and Description |
---|---|
static JsonStringConfOption |
SCRIPTS_TO_LOAD
Option for scripts to load on workers
|
Modifier and Type | Method and Description |
---|---|
static void |
addScriptToLoad(org.apache.hadoop.conf.Configuration conf,
DeployedScript script)
Add a script to load on workers
|
static void |
addScriptToLoad(org.apache.hadoop.conf.Configuration conf,
String script,
DeployType deployType,
Language language)
Add a script to load on workers
|
static List<DeployedScript> |
getLoadedScripts()
Get list of scripts already loaded.
|
static List<DeployedScript> |
getScriptsToLoad(org.apache.hadoop.conf.Configuration conf)
Get the list of scripts to load on workers
|
static void |
loadScript(org.apache.hadoop.conf.Configuration conf,
DeployedScript deployedScript)
Load a single deployed script
|
static void |
loadScripts(org.apache.hadoop.conf.Configuration conf)
Load all the scripts deployed in Configuration
|
static void |
setScriptsToLoad(org.apache.hadoop.conf.Configuration conf,
DeployedScript... scripts)
Deploy scripts
|
static void |
setScriptsToLoad(org.apache.hadoop.conf.Configuration conf,
String scriptPath,
DeployType deployType,
Language language)
Deploy a script
|
static void |
setScriptsToLoad(org.apache.hadoop.conf.Configuration conf,
String script1,
DeployType deployType1,
Language language1,
String script2,
DeployType deployType2,
Language language2)
Deploy pair of scripts
|
public static final JsonStringConfOption SCRIPTS_TO_LOAD
public static void setScriptsToLoad(org.apache.hadoop.conf.Configuration conf, String scriptPath, DeployType deployType, Language language)
conf
- Configuration
scriptPath
- Path to scriptdeployType
- type of deploymentlanguage
- programming languagepublic static void setScriptsToLoad(org.apache.hadoop.conf.Configuration conf, String script1, DeployType deployType1, Language language1, String script2, DeployType deployType2, Language language2)
conf
- Configuration
script1
- Path to scriptdeployType1
- type of deploymentlanguage1
- programming languagescript2
- Path to scriptdeployType2
- type of deploymentlanguage2
- programming languagepublic static void setScriptsToLoad(org.apache.hadoop.conf.Configuration conf, DeployedScript... scripts)
conf
- Configurationscripts
- the scripts to deploypublic static void addScriptToLoad(org.apache.hadoop.conf.Configuration conf, String script, DeployType deployType, Language language)
conf
- Configuration
script
- Path to scriptdeployType
- type of deploymentlanguage
- programming languagepublic static void addScriptToLoad(org.apache.hadoop.conf.Configuration conf, DeployedScript script)
conf
- Configuration
script
- the script to loadpublic static List<DeployedScript> getScriptsToLoad(org.apache.hadoop.conf.Configuration conf)
conf
- Configuration
DeployedScript
spublic static void loadScripts(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- ConfigurationIOException
public static void loadScript(org.apache.hadoop.conf.Configuration conf, DeployedScript deployedScript) throws IOException
conf
- ConfigurationdeployedScript
- the deployed scriptIOException
public static List<DeployedScript> getLoadedScripts()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.