Talend Snowflake Connectivity
Both are found in the Project Repository when you open a Talend Studio project:
- The preferred method is to create a direct connection in the section using native connectivity.
- Alternatively, a JDBC connection in the section using a generic JDBC driver is available.
Creating a Native Connection to Snowflake
- Look at the native connection in the Project repository.
- Find the Metadata section and locate the Snowflake icon.
Right-click and select the Create Snowflake menu
This opens the Connection definition dialog box.
Give the connection definition a Name, enter the
Account, User Id,
Password, Warehouse Name,
PUBLIC), and a Database Name.Initially the parameters are filled in manually to establish a valid connection, but it is a best practice to convert this into a Context Group with variables assigned to the connection parameters.
- Click Advanced, then ensure that the Login Timeout, Tracing, and Role settings are suitable.
The following example shows the dialog box once it has been exported as a Context Group.
Once a context group is created, test each connection to ensure validity.
It is advisable to test connections before exporting them as a context, however once the context group is created, you can set up different contexts by environment (a best practice).
- Once a valid connection is made, click Next.
Select the tables of interest then click Finish.
Creating a JDBC Connection to Snowflake
- To create a JDBC connection to Snowflake, find the Metadata section and locate the DB Connections icon. Right-click and select the Create Connection menu option. This opens the Connection Description dialog box.
Enter a Connection Name, Purpose,
and Description, then click
This opens the Connection Definition dialog box. The values needed are a bit different from a native connection, in that you must specify the JDBC driver parameters in addition to the Snowflake details.
In particular, it is critical to get the JDBC URL correct. Here is the required syntax:
Navigate to and select the previously installed Driver
Two are shown here, and it is likely that the most recent file is preferred.
- Navigate to and select the previously installed Class name.
- Enter the User Name, Password, and select oracle_id as the Mapping file.
- Before clicking Finish, click Export as context to export the connection definition as a Context Group by environment.
Click Check to test the connection directly from it,
then click Finish.
The result of this is a Snowflake JDBC connection definition, usable in Talend Jobs, that allows access to the selected tables. You can see these listed in the Project Repository under the connection definition.