Main Content

toDebugString

Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark

Obtain a description of an RDD and its recursive dependencies for debugging

Syntax

str = toDebugString(obj)

Description

str = toDebugString(obj) gets a description of input RDD and its recursive dependencies for debugging purposes.

Input Arguments

expand all

An input RDD, specified as an RDD object.

Output Arguments

expand all

Description of an RDD and its recursive dependencies for debugging purposes, returned as a character vector.

Data Types: char

Examples

expand all

Use the toDebugString method to get a description of an RDD and its recursive dependencies.

%% 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);

%% toDebugString
myFile = sc.textFile('airlinesmall.csv');
myFile.persist();
myFile.toDebugString()

Version History

Introduced in R2016b