Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Build Visualizations of IBM Cloud Object Storage Data in Birst
Use CData drivers and the Birst Cloud Agent to build real-time visualizations of IBM Cloud Object Storage data in Birst.
Birst is a cloud business intelligence (BI) tool and analytics platform that helps organizations quickly understand and optimize complex processes. When paired with the CData JDBC Driver for IBM Cloud Object Storage, you can connect to live IBM Cloud Object Storage data through the Birst Cloud Agent and build real-time visualizations. In this article, we walk you through, step-by-step, how to connect to IBM Cloud Object Storage using the Cloud Agent and create dynamic reports in Birst.
With powerful data processing capabilities, the CData JDBC driver offers unmatched performance for live IBM Cloud Object Storage data operations in Birst. When you issue complex SQL queries from Birst to IBM Cloud Object Storage, the driver pushes supported SQL operations, like filters and aggregations, directly to IBM Cloud Object Storage and utilizes the embedded SQL Engine to process unsupported operations client-side (often SQL functions and JOIN operations). With built-in dynamic metadata querying, the JDBC driver enables you to visualize and analyze IBM Cloud Object Storage data using native Birst data types.
Configure a JDBC Connection to IBM Cloud Object Storage Data in Birst
Before creating the Birst project, you will need to install the Birst Cloud Agent (in order to work with the installed JDBC Driver). Also, copy the JAR file for the JDBC Driver (and the LIC file, if it exists) to the /drivers/ directory in the installation location for the Cloud Agent.
With the driver and Cloud Agent installed, you are ready to begin.
- Create a new project in Birst.
- Name the connection (e.g. CDataIBMCloudObjectStorage).
- Choose Live Access.
- Select an agent.
- Set Database Type to Other.
- Set SQL Type to MSSQL
- Set the Connection string.
Register a New Instance of Cloud Object Storage
If you do not already have Cloud Object Storage in your IBM Cloud account, follow the procedure below to install an instance of SQL Query in your account:
- Log in to your IBM Cloud account.
- Navigate to the page, choose a name for your instance and click Create. You will be redirected to the instance of Cloud Object Storage you just created.
Connecting using OAuth Authentication
There are certain connection properties you need to set before you can connect. You can obtain these as follows:
API Key
To connect with IBM Cloud Object Storage, you need an API Key. You can obtain this as follows:
- Log in to your IBM Cloud account.
- Navigate to the Platform API Keys page.
- On the middle-right corner click "Create an IBM Cloud API Key" to create a new API Key.
- In the pop-up window, specify the API Key name and click "Create". Note the API Key as you can never access it again from the dashboard.
Cloud Object Storage CRN
If you have multiple accounts, you will need to specify the CloudObjectStorageCRN explicitly. To find the appropriate value, you can:
- Query the Services view. This will list your IBM Cloud Object Storage instances along with the CRN for each.
- Locate the CRN directly in IBM Cloud. To do so, navigate to your IBM Cloud Dashboard. In the Resource List, Under Storage, select your Cloud Object Storage resource to get its CRN.
Connecting to Data
You can now set the following to connect to data:
- InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the OAuthAccessToken.
- ApiKey: Set this to your API key which was noted during setup.
- CloudObjectStorageCRN (Optional): Set this to the cloud object storage CRN you want to work with. While the connector attempts to retrieve this automatically, specifying this explicitly is recommended if you have more than Cloud Object Storage account.
When you connect, the connector completes the OAuth process.
- Extracts the access token and authenticates requests.
- Saves OAuth values in OAuthSettingsLocation to be persisted across connections.
Built-in Connection String Designer
For assistance in constructing the JDBC URL, use the connection string designer built into the IBM Cloud Object Storage JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.ibmcloudobjectstorage.jar
Fill in the connection properties and copy the connection string to the clipboard.
When you configure the JDBC URL, you may also want to set the Max Rows connection property. This will limit the number of rows returned, which is especially helpful for improving performance when designing reports and visualizations.
Below is a typical JDBC connection string for IBM Cloud Object Storage:
jdbc:ibmcloudobjectstorage:ApiKey=myApiKey;CloudObjectStorageCRN=MyInstanceCRN;Region=myRegion;OAuthClientId=MyOAuthClientId;OAuthClientSecret=myOAuthClientSecret;
- Set the Driver Name: cdata.jdbc.ibmcloudobjectstorage.IBMCloudObjectStorageDriver and click Save.
NOTE: Since authentication to IBM Cloud Object Storage is managed from the connection string, you can leave Security Credentials blank.
Configure IBM Cloud Object Storage Data Objects
Now that the connection is configured, we are ready to configure the schema for the dataset, choosing the tables, views, and columns we wish to visualize.
- Select the Schema (e.g. IBMCloudObjectStorage).
- Click on Tables and/or Views to connect to those entities and click Apply.
- Select the Tables and Columns you want to access and click Done.
With the objects configured, you can perform any data preparation and discover any relationships in your data using the Pronto Prepare and Relate tools.
Build a Visualization
After you prepare your data and define relationships between the connected objects, you are ready to build your visualization.
- Select the Visualizer tool from the menu.
- Select Measures & Categories from your objects
- Select and configure the appropriate visualization for the Measure(s) you selected.
Using the CData JDBC Driver for IBM Cloud Object Storage with the Cloud Agent and Birst, you can easily create robust visualizations and reports on IBM Cloud Object Storage data. Download a free, 30-day trial and start building Birst visualizations today.