This is a MATLAB® interface that connects to the Azure™ Data Lake™ Storage service.
This package has been deprecated, please use the following package instead: https://github.com/mathworks-ref-arch/matlab-azure-services This package may be removed in the future.
- Requires MATLAB R2017a or later
To build a required JAR file:
- Maven™
- JDK 8
- Microsoft® Azure Data Lake Storage SDK for Java®
The following assumes the following steps described in Getting Started have been completed:
- Configured Active Directory
- Configured a Data Lake Storage
- Installed the MATLAB interface
- Preferably configured an azuredatalakestore.json credentials file
Run the startup.m file in the /Azure-Data-Lake-Storage/Software/MATLAB directory, this configures required paths in advance of using the client. Then declare and initialize a Client as follows:
startup;
dlClient = azure.datalake.store.ADLStoreClient;
dlClient.initialize();
dlClient.createDirectory('myDirName')
Creating directory: myDirName
ans =
logical
1
upload() can be used to upload an arbitrary local file to a given location on Data Lake as follows:
dlClient.upload('myadlfilename.csv', 'mylocalfilename.csv');
Files can be downloaded from Data Lake using the download method as follows:
dlClient.download('myadlfilename.csv', 'mylocalfilename.csv');
Delete a file or directory as follows:
tf = dlClient.delete('/my/path/to/file1.mat');
When finished using a client it is good practice to delete it as follows:
dlClient.delete;
MathWorks Products (https://www.mathworks.com)
- MATLAB (R2017a or later)
- MATLAB Compiler and Compiler SDK (R2017a or later)
- MATLAB Production Server (R2017a or later)
- MATLAB Distributed Computing Server (R2017a or later)
This package is primarily tested on Ubuntu 16.04 and Windows 10.
The license for the MATLAB Interface for Azure Data Lake Storage is available in the LICENSE.md file in this GitHub repository. This package uses certain third-party content which is licensed under separate license agreements. See the pom.xml file for third-party software downloaded at build time.
Provide suggestions for additional features or capabilities using the following link:
https://www.mathworks.com/products/reference-architectures/request-new-reference-architectures.html
Email: mwlab@mathworks.com