Share this article:

Vertica Integration with Jaspersoft: Connection Guide

About Vertica Connection Guides

Vertica connection guides provide basic information about setting up connections to Vertica from software that our technology partners create. These documents provide guidance using one specific version of Vertica and one specific version of the third party vendor’s software. Other versions of the third-party product may work with Vertica. However, these other versions may not have been tested.

About this Document

This document explains how to connect Jaspersoft to Vertica.

Jaspersoft Overview

Jaspersoft is a business intelligence tool that provides insights for fast visual dashboards. For more information, see the TIBCO Jaspersoft website.

To download a community edition of the Jaspersoft software, see Download Jaspersoft Business Intelligence Suite.

Vertica and Jaspersoft Product Versions

The information in this document is based on the testing we have done with the following software versions:

Software Version
JasperReports 7.1.0
Jaspersoft Studio 6.4
Desktop platform Windows Server
Vertica client

Vertica JDBC client driver 9.1.0

Vertica Server Vertica Analytic Database 9.1.0

Install the Client Driver

Jaspersoft uses JDBC to connect to Vertica. Before you can connect Jaspersoft to Vertica, you must download and install the Vertica client package that includes the driver.

To download and install the Vertica client package:

  1. Go to the Vertica Client Drivers page on Vertica.
  2. Download the Vertica JDBC driver that matches your operating system and the version of Vertica that you are using.

Note Vertica drivers are forward compatible. You can connect to the Vertica server using previous versions of the client. For more information, see Client Drivers and Server Version Compatibility in the Vertica documentation.

Connect Vertica to Jaspersoft

  1. Log in to the JasperReports server using your User ID and password.
  2. From the left panel, right-click Data Source. Select Add Resource, then select Data Source.

    The New Data Source window appears.

  3. From the Type drop-down list, select JDBC Data Source.
  4. From the JDBC Driver drop-down list, select NOT INSTALLED: Vertica(com.vertica.jdbc.Driver).
  5. Click Add Driver.

  6. Click Browse and select the Vertica JDBC jar file.
  7. Click Upload.
  8. Enter the following information for your Vertica server:

    Name User

  9. Click Test Connection.

    When the connection is successful, a confirmation appears.

  10. Click Save.
  11. In the Save window, add a Data Source Name and click Save.

The Vertica connection is now displayed in the data sources list:

Visualize Data in Jaspersoft

You can prepare reports using Jaspersoft Studio and then publish the reports to the JasperReports server. Follow these steps to create the reports:

  1. Open Jaspersoft Studio.
  2. In the left panel select Data Adapter > Create Data Adapter.

  3. Select Database JDBC Connection and click Next.

    The Data Adapter Wizard appears.

  4. From the JDBC drop-down list, select com.vertica.jdbc.Driver.
  5. Enter your credentials for the Vertica server.
  6. Click the Driver Classpath tab.
  7. Add the Vertica JDBC jar file.
  8. Click Test to test the connection.
  9. Click Finish.
  10. From the main panel, click File > New > Jasper Report.

    The New Report Wizard opens.

  11. Select a template and click Next.
  12. Enter or select the Parent Folder, which will be the container for the report.
  13. Click Next.
  14. From the data adapter drop-down menu, select VerticaDS - Database JDBC connection.
  15. Click Next.
  16. Write the SELECT statement for the report and click Next.

  17. Select your dataset fields and click Finish.

The report is created and saved in the workspace in your local file system.

Publish Reports

To publish your reports, you must use JasperReports, as follows:

  1. Open JasperReports.
  2. From the left panel, right-click Reports > Add Resource > JasperReport.
  3. Enter the report name.
  4. Click Browse and select the JRXML file you created.
  5. From the left panel, select Data Source.

    The Select Data Source from Repository window opens.

  6. Click Browse and select VerticaDS.
  7. Click Submit.

The report is generated and displayed under the Reports folder.

Known Limitations

  • Jaspersoft does not support BINARY, VARBINARY, and LONG VARBINARY data types.
  • Jaspersoft rounds off millisecond values on TIMETZ, TIME, TIMESTAMP, and TIMESTAMPTZ data types.
  • Jaspersoft does not support the month value for DATE, TIMESTAMP, and TIMESTAMPTZ data types.
  • Jaspersoft does not support the INTERVAL YEAR TO MONTH, INTERVAL HOUR TO SECOND, INTERVAL HOUR TO MINUTE, or INTERVAL data types. Jaspersoft returns this error: There was an error on the server.

For More Information

Share this article: