Share this article:

Vertica Integration with Talend: Connection Guide

About Vertica Connection Guides

Vertica connection guides provide basic instructions for connecting a third-party partner product to Vertica. Connection guides are based on our testing with specific versions of Vertica and the partner product.

Vertica and Talend: Latest Versions Tested

Software Version
Partner Product

Talend 6.5.1

Vertica Client

Vertica JDBC Driver 9.0.x

Vertica Server Vertica Server 9.1.1-0

Talend Overview

Talend is an open source ETL tool that you can use to perform extract, transform, and load operations on your data. You can load the transformed data into many databases and file formats. For details about Talend, see the Talend website.

Install Talend

To install the latest version of Talend:

  1. Navigate to https://www.talend.com/download.
  2. Under Big Data Integration, click Try Now.
  3. Follow the instructions to download and install Talend.

Note Talend uses JDBC to connect to your Vertica database. The Talend installation installs the supported Vertica JDBC driver, so you do not need to install the driver separately.

Connect Vertica to Talend

When you install Talend, the installer extracts these application files:

  • TOS_DI-win32-x86
  • TOS_DI-win-x86_64

To start Talend, run the application appropriate to your Windows operating system.

The following topics describe how to create a project that connects to Vertica, and create a job that when executed, performs the desired extraction, transformation, and load.

Create a Project

A project in Talend is a top-level structure that contains objects, job designs, and metadata. Create a separate Talend project for each business purpose.

Follow these steps to create a project:

  1. Launch the appropriate Talend application (32-bit or 64-bit).
  2. On the dialog box that opens, select Create a new project and enter a name for your project.

  3. Click Create.

    The main Talend window opens.

Create the Database Connection

  1. On the Repository tab, expand Metadata.
  2. Right-click Db Connections and select Create connection.

    db_connection_menu.png

    The first Database Connection window appears.

    create_connection_1.png

  3. Enter information about the database connection from which you want to extract data. In this example, the source database name is DB_SRC.
  4. Click Next.

    The second Database Connection window opens.

    database_connection_window1.png

  5. Enter credentials for the Vertica database you want to extract the data from, including the connection information.
  6. Click Check to have Talend confirm that the connection is valid.

  7. After the Check Connection dialog box opens to tell you that the connection was successful, click OK.

    If the connection is not successful, check the credentials that you entered.

  8. Click Finish.

    You have created the data source.

  9. To define a target for the extracted and tranformed data, repeat steps 1–7 for the target database or file format.

    After you define the source and target connections, they appear under Repository > Metadata > Db Connections with the names you designated (DB_SRC and DB_TGT). Talend appends "0.1" to their names.

  10. To select the data from your source database that you want to transform, right-click DB_SRC and select Retrieve Schema.

    retrieve_schema.png 

  11.  Talend displays the schema and tables that you can use.

    select_schema.png

  12. Select the tables to extract from your source Vertica database. The example shows BULKTEST and Char4k_Table selected.

Create a Job

A job contains the details that Talend needs to execute the workflow that you define for the ETL operations.

To create a job to perform these operations, follow these steps:

  1. On the Repository tab, right-click Job Designs and select Create job.

    create_job.png

    The New Job window appears.

  2. Next to Name, enter the name of the job.
  3. Click Finish.
  4. Under Repository > Metadata > Db Connections > DB_SRC 0.1 > Table schemas, select the desired table, in this case, Char4k_Table.

  5. To add the table to the Job Designer, drag the table onto the canvas.

    The Job Designer provides a high-level view of the workflow components and connections.

  6. Select the table to extract data from, in this case, Char4k_Table. The Components window appears.

    tVerticaInput.png

  7. The Components window lists the types of components you can create in the Job Designer. Select tVerticaInput and click OK to add the tVerticaInput component to the Job Designer.

    source_input_in_model.png

  8. To view the component properties, double-click the component in the Job Designer.

    The properties include source database connection information and the SQL query that Talend will use to extract the data.

  9. In the properties window, specify the source data transformation.

    source_input_properties.png

  10. Similarly for the target, in the Repository, select the target table (Char_4kTable) from Target DB (DB_TGT) and drag it into the Job Designer.
  11. In the Components window, select the tVerticaOutput component and click OK.

    The tVerticaOutput component appears in the Job Designer.

  12. Double-click the tVerticaOutput component.

  13. In the properties window, configure the transformation for the target data.
  14. To map the two components, right-click the tVerticaInput object and select Row > Main.
  15. Select the tVerticaOutput component and left-click.

    The line snaps to the tVerticaOutput component:

    map_two_components.png

  16. To view the tVerticaOutput schema, double-click the tVerticaOutput component in the Job Designer.

  17. On the tVerticaOutput properties window, to the right of Edit schema, click the box with the three dots in it.
  18. In the window that opens, select View schema.

    view_schema.png

  19. The schemas for the input and output components display.

    In this example, the input and output schemas are identical:

    ready_to_run_job.png

Run the Job

Now you can run the ETL job. To start the job, click the Run icon (at the top of the window) or press F6.

When the job completes, Talend displays a message like this:

job_ran.png

Known Limitations

The following limitations apply to the Vertica integration with Talend.

Support for JDBC

At the time of this writing (January, 2017), Talend does not work correctly with the Vertica JDBC 7.1.x driver that it offers under the Vertica Version field of the Connection definition dialog box.

Choose one of the older versions of the Vertica JDBC driver when you define a connection. Vertica engineers tested the Vertica integration with Talend using the Vertica JDBC driver 7.0.x.

Integer Conversion

In a Vertica table, the maximum and minimum values for an INTEGER column are:

  • Maximum: 922337203685477580
  • Minimum: –9223372036854775807

When you try to load these values, Talend loads the values as 1 and –1, respectively.

To work around this problem, before loading the data, change the column's data type in Talend to LONG. Then Talend saves the correct values.

For More Information

For more information, see the following links:

Share this article: