MATLAB: Matlab to apahe Spark

error matlab connect sparkMATLAB Compilermcc command

mcc -m deployToSparkMlApiLocal.m -a toolbox/matlab/demos/airlinesmall.csv
I run this command, I see the following error.
The specified file "toolbox/matlab/demos/airlinesmall.csv" is not supported with the "-a" option.

Best Answer

You need to specify airlinesmall.csv path with MATLAB Root directory. For example, if MATLAB is installed in /usr/local/MATLAB/R2018a, the mcc command should be:
mcc -m deployToSparkMlApiLocal.m -a /usr/local/MATLAB/R2018a/toolbox/matlab/demos/airlinesmall.csv