public class DMLScript extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DMLScript.RUNTIME_PLATFORM |
Modifier and Type | Field and Description |
---|---|
static boolean |
_activeAM |
static boolean |
_suppressPrint2Stdout |
static String |
_uuid |
static String |
DML_FILE_PATH_ANTLR_PARSER |
static boolean |
ENABLE_DEBUG_MODE |
static org.apache.sysml.utils.Explain.ExplainType |
EXPLAIN |
static boolean |
FORCE_ACCELERATOR |
static DMLScript.RUNTIME_PLATFORM |
rtplatform |
static ScriptType |
SCRIPT_TYPE
Global variable indicating the script type (DML or PYDML).
|
static boolean |
STATISTICS |
static int |
STATISTICS_COUNT |
static String |
USAGE |
static boolean |
USE_ACCELERATOR |
static boolean |
USE_LOCAL_SPARK_CONFIG |
Constructor and Description |
---|
DMLScript() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupHadoopExecution(org.apache.sysml.conf.DMLConfig config) |
protected static Map<String,String> |
createArgumentsMap(boolean hasNamedArgs,
String[] args) |
static boolean |
executeScript(org.apache.hadoop.conf.Configuration conf,
String[] args)
Single entry point for all public invocation alternatives (e.g.,
main, executeScript, JaqlUdf etc)
|
static String |
getUUID() |
static void |
initHadoopExecution(org.apache.sysml.conf.DMLConfig config) |
static boolean |
isActiveAM() |
static void |
main(String[] args)
Default DML script invocation (e.g., via 'hadoop jar SystemML.jar -f Test.dml')
|
protected static String |
readDMLScript(String argname,
String script) |
static void |
setActiveAM() |
static void |
setUUID(String uuid)
Used to set master UUID on all nodes (in parfor remote_mr, where DMLScript passed)
in order to simplify cleanup of scratch_space and local working dirs.
|
static boolean |
suppressPrint2Stdout() |
public static DMLScript.RUNTIME_PLATFORM rtplatform
public static boolean STATISTICS
public static int STATISTICS_COUNT
public static boolean ENABLE_DEBUG_MODE
public static boolean USE_LOCAL_SPARK_CONFIG
public static String DML_FILE_PATH_ANTLR_PARSER
public static org.apache.sysml.utils.Explain.ExplainType EXPLAIN
public static ScriptType SCRIPT_TYPE
public static boolean USE_ACCELERATOR
public static boolean FORCE_ACCELERATOR
public static boolean _suppressPrint2Stdout
public static String _uuid
public static boolean _activeAM
public static String USAGE
public static String getUUID()
public static void setUUID(String uuid)
uuid
- master UUID to set on all nodespublic static boolean suppressPrint2Stdout()
public static void setActiveAM()
public static boolean isActiveAM()
public static void main(String[] args) throws IOException, DMLException
args
- command-line argumentsIOException
- if an IOException occursDMLException
- if a DMLException occurspublic static boolean executeScript(org.apache.hadoop.conf.Configuration conf, String[] args) throws DMLException
conf
- Hadoop configurationargs
- argumentsDMLException
- if DMLException occursorg.apache.sysml.parser.ParseException
- if ParseException occursprotected static Map<String,String> createArgumentsMap(boolean hasNamedArgs, String[] args) throws org.apache.sysml.parser.LanguageException
org.apache.sysml.parser.LanguageException
protected static String readDMLScript(String argname, String script) throws IOException, org.apache.sysml.parser.LanguageException
IOException
org.apache.sysml.parser.LanguageException
public static void initHadoopExecution(org.apache.sysml.conf.DMLConfig config) throws IOException, org.apache.sysml.parser.ParseException, DMLRuntimeException
IOException
org.apache.sysml.parser.ParseException
DMLRuntimeException
public static void cleanupHadoopExecution(org.apache.sysml.conf.DMLConfig config) throws IOException, org.apache.sysml.parser.ParseException
IOException
org.apache.sysml.parser.ParseException
Copyright © 2017 The Apache Software Foundation. All rights reserved.