Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Transforming Data from Matlab for Hadoop Ingestion

Transforming Data from Matlab for Hadoop Ingestion

New Contributor

Does anyone have experience transferring data from a Matlab data file to a HDP-friendly format, such as .csv? There’s Matlab functions to translate .mat files to .csv ones (csvwrite/dlmwrite), but the file I’m working with is much too big to handle in Matlab. What else can I use?

1 REPLY 1

Re: Transforming Data from Matlab for Hadoop Ingestion

@Angeera Naser

1. What about chunking that file and still use Matlab?

FileData = load('FileName.mat');csvwrite('FileName.csv', FileData.M);

2. Python: https://gist.github.com/Nixonite/bc2f69b0c4430211bcad

3. Use Spark. Example: http://blog.madhukaraphatak.com/matfile-to-rdd/

Don't have an account?
Coming from Hortonworks? Activate your account here