Accessing data from Amazon Redshift
With Spotfire, you can connect to, access, and analyze your Amazon Redshift data. In this article, you learn how to use Spotfire's built-in data connector for Amazon Redshift.
- Connector for Amazon Redshift – Features and settings
You can connect to and access data from Amazon Redshift with the connector for Amazon Redshift. On this page, you can find information about the capabilities, available settings, and things to keep in mind when you work with data connections to Amazon Redshift.
Creating a new connection to access data from Amazon Redshift
To access your Amazon Redshift data in Spotfire, create a connection to your Amazon Redshift cluster.
Before you begin
- Install the Amazon Redshift ODBC Driver on your computer. For help finding the right driver, see Drivers and data sources in Spotfire. Also look over the system requirements.
- Gather the information that is required to connect to your Amazon Redshift cluster. It often includes server address, login credentials, and other connection settings. The person who is the administrator for Amazon Redshift in your organization can help you.
Procedure
Access data from Amazon S3 with Redshift Spectrum
If you have data files in Amazon S3, you can access that data in Spotfire with the connector for Amazon Redshift. To make your data from Amazon S3 accessible in Spotfire, use the Redshift Spectrum functionality in Amazon Redshift.
When you have set up Redshift Spectrum tables for your data files in Amazon S3, connect to your Amazon Redshift cluster in Spotfire. The Redshift Spectrum tables show up as data tables that you can select in the Views in Connection dialog.
What types of S3 can I access data from?
What types of data files in Amazon S3 you can access depends on Redshift Spectrum. To learn about what types of data files Redshift Spectrum supports, see the official documentation from Amazon.
Also remember that in Spotfire, the connector for Amazon Redshift might not support all data types available in your data. If there are unsupported data types in your data, those columns do not show up in Spotfire. See Amazon Redshift Data Types.
Authentication settings in settings profiles and credentials profile
You can store settings from the Settings for authentication method table (see Connector for Amazon Redshift – Features and settings) in a settings profile that you can reuse. The purpose is to be able to store settings and their values without having to store the settings in the analysis file. Then you can use those settings automatically when you open a connection in a web client or Automation Services.
Settings profiles
A settings profile is similar to a credentials profile. The main difference is that a settings profile does not include the username and password. That means that you can store some settings, which you do not want to store directly in the analysis file, and still have the user enter the username and password when they open the connection.
Settings profiles are stored in the web client service configuration, in the configuration file Spotfire.Dxp.Worker.Host.exe.config.
Adding settings profiles for Amazon Redshift in a web client service configuration
Procedure
What to do next
If you have multiple web client services and Automation Services instances, you must make the settings available on all service instances that you want to use the settings profile on.
Using a settings profile in a connection to Amazon Redshift
Procedure
- Edit or create a new connection to Amazon Redshift ().
- In the Amazon Redshift Connection dialog, on the Advanced tab, enter the name of the settings profile in the Settings profile field.
Credentials profiles
You can use a credentials profile to log in automatically when you open your Amazon Redshift connection in the Spotfire web client or Automation Services. If your connection has mandatory settings in the Settings for authentication method table, and you do not save the setting values in the connection, you must add those settings in your credentials profile.
To store values for settings from the Settings for authentication method table, add the setting names and their values to the password setting in your credentials profile.
Add the settings as a JSON table. The format of the table is:
{"password":"mypassword" "firstSettingName":"value" "secondSettingName":"value"}
For example:
<entry profile="CredentialsProfileName">
<username>MyUser<username>
<password>{"password":"mypassword" "SecretAccessKey":"mysecretaccesskey"}</password>
</entry>
flyout and select