You are viewing the RapidMiner Studio documentation for version 9.5 - Check here for latest version
Using the Azure Blob Storage Connector
The Azure Blob Storage Connector allows you to access your Azure Blob Storage directly from RapidMiner Studio. Both read and write operations are supported. This document will walk you through how to:
Connect to your Azure Blob Storage account
To configure a new Azure Blob Storage Connection you will need the connection details of your Azure Blob Storage account (at least the access key and the secret key).
In RapidMiner Studio, right-click on the repository you want to store your Azure Blob Storage Connection in and choose Create Connection.
You can also click on Connections > Create Connection and select the repository from the dropdown of the following dialog.
Give a name to the new Connection, and set Connection Type to Azure Blob Storage:
Click on Create and switch to the Setup tab in the Edit connection dialog.
Fill in the connection details of your Azure Blob Storage account:
While not required, we recommend testing your new Azure Blob Storage Connection by clicking the Test connection button. If the test fails, please check whether the details are correct.
Click Save to save your Connection and close the Edit connection dialog. You can now start using the Azure Blob Storage operators!
Read from Azure Blob Storage
The Read Azure Blob Storage operator reads data from your Azure Blob Storage account. The operator can be used to load arbitrary file formats, since it only downloads and does not process the files. To process the files, you will need to use additional operators such as Read Document, Read Excel, or Read XML.
Let us start with reading a simple log file from Azure Blob Storage.
Drag a Read Azure Blob Storage operator into the Process Panel. Select your Azure Blob Storage Connection for the connection entry parameter from the Connections folder of the repository you stored it in by clicking on the button next to it:
Alternatively, you can drag the Azure Blob Storage Connection from the repository into the Process Panel and connect the resulting operator with the Read Azure Blob Storage operator.
Click on the file chooser button to view the files in your Azure Blob Storage account. Select the file that you want to load and click Open.
As mentioned above, the Read Azure Blob Storage operator does not process the contents of the specified file. In our example, we have chosen a log file (a plain text file). This file type can be processed via the Read Document operator which is part of the Text Processing extension for RapidMiner Studio.
If you have not already installed the Text Processing extension for RapidMiner Studio, please go to the marketplace and do so now. Then add a Read Document operator between the Read Azure Blob Storage operator and the result port:
Run the process! In the Results perspective, you should see a single document containing the content of the log file.
You could now use further text processing operators to work with this document, e.g., to determine the commonness of certain events. To write results back to Azure Blob Storage, you can use the Write Azure Blob Storage operator. It uses the same Connection Type as the Read Azure Blob Storage operator and has a similar interface. You can also read from a set of files in an Azure Blob Storage directory, using the Loop Azure Blob Storage operator. For this you need to specify the connection entry and the folder that you want to process, as well the steps of the processing loop with nested operators. For more details please read the help of the Loop Azure Blob Storage operator.