Class: matlab.compiler.mlspark.SparkContext Package: matlab.compiler.mlspark
Set log level
setLogLevel(sc,logLevel)
setLogLevel(sc,logLevel) sets the log level to one of eight possible options.
sc
logLevel
expand all
SparkContext
The SparkContext to use, specified as a SparkContext object.
'ALL'
'DEBUG'
'ERROR'
'FATAL'
'INFO'
'OFF'
'TRACE'
'WARN'
Log level, specified as one of the following values:
Data Types: char
char
Set the log level for execution against Spark™.
%% Connect to Spark sparkProp = containers.Map({'spark.executor.cores'}, {'1'}); conf = matlab.compiler.mlspark.SparkConf('AppName','myApp', ... 'Master','local[1]','SparkProperties',sparkProp); sc = matlab.compiler.mlspark.SparkContext(conf); %% Set log level sc.setLogLevel('OFF');