{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Integrations","type":"markdown"},"seo":{"title":"Jaspersoft Ireport Export Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"jaspersoft-ireport-export-integration","__idx":0},"children":["Jaspersoft Ireport Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This article explains how to use Treasure Data with ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://jasperforge.org/projects/ireport"},"children":["JasperSoft iReport"]},", by leveraging our JDBC driver. By combining Treasure Data with JasperSoft, you can process terabytes of data on the cloud, while continuing to use your existing JasperSoft instances."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Basic knowledge of Treasure Data."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/databases/schema-management"},"children":["The Schema article"]}," explains how to manipulate the TD schema."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"download-jaspersoft-ireport","__idx":2},"children":["Download JasperSoft iReport"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can download JasperSoft iReport from the link below. Version 4.6.0 was used for this article."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://community.jaspersoft.com/project/ireport-designer"},"children":["JasperSoft Community’s iReport Designer"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"download-the-treasure-data-jdbc-driver","__idx":3},"children":["Download the Treasure Data JDBC Driver"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can download the driver itself from the link below. The driver is still in beta; any feedback is appreciated."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://mvnrepository.com/artifact/com.treasuredata/td-jdbc"},"children":["JDBC Driver Download"]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["This driver only works with Treasure Data. It does not run on other environments, such as your local Hadoop/Hive cluster."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"add-treasure-data-as-data-source","__idx":4},"children":["Add Treasure Data as Data Source"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To add Treasure Data as Jasper’s data source, follow the procedure below."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"add-the-jdbc-driver-jar-to-classpath","__idx":5},"children":["Add the JDBC Driver Jar to Classpath"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Go to Preferences -> iReport Tab -> Classpath, and press the Add Jar button. Select the downloaded JDBC driver and check the Reloadable box in the table."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-195209.3f52124f98ca0accaea9fa792a9f47508da2a977d80c5388ca5b974da368bfbe.a987c990.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"create-a-new-data-source","__idx":6},"children":["Create a New Data Source"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Press the database icon, which is located near the ‘Empty datasource’ indicator. Add a new data source with type: Database JDBC connection."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-195157.448e5563640a6fba08b4f0d003ac6f98295ecc7d6600c51c8e3b754e5073d436.a987c990.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"configure-your-jdbc-connection","__idx":7},"children":["Configure your JDBC Connection"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Configure your JDBC parameters as shown in the following figure. Make sure to provide your credentials (your email + password)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data's JDBC driver will NOT appear in the \"JDBC Driver\" dropdown. Select the dropdown area and type ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["com.treasure\\_data.jdbc.TreasureDataDriver"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-195144.72e4dad52abb5dbc9c22317938c069d1c7db901483643edb76390352d27ad46e.a987c990.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-reports","__idx":8},"children":["Create Reports"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The procedure for this step is identical to creating reports with a JDBC source."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["First, create a report by navigating to File -> New -> Report. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Make sure that your data source is set to “TreasureData”"]}," (or your name for our JDBC connection)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-195126.3e7382ed13dd12c13c83f58f364752d61ebab882ed16c03e3eaa132daeebe8fe.a987c990.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Here, the query is"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"SELECT code, COUNT(1) AS count FROM apache_log GROUP BY code\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Some notes about this sample data:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The data in this table is taken from a typical Apache log. The field code corresponds to the HTTP status code. Essentially, we are counting the number of HTTP requests per status code."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data does not have a pre-defined schema out of the box. We, therefore, need to add schema for the field named code for the above query to work."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td table:show demo apache_log\n","lang":"bash"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The rest of the setup is exactly the same as any other report."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191016-195112.0ba730a029994724774f7dc566bb0c729d726268009ca2cc267bbdf330d50277.a987c990.png","alt":""},"children":[]}]}]},"headings":[{"value":"Jaspersoft Ireport Export Integration","id":"jaspersoft-ireport-export-integration","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":1},{"value":"Download JasperSoft iReport","id":"download-jaspersoft-ireport","depth":1},{"value":"Download the Treasure Data JDBC Driver","id":"download-the-treasure-data-jdbc-driver","depth":1},{"value":"Add Treasure Data as Data Source","id":"add-treasure-data-as-data-source","depth":1},{"value":"Add the JDBC Driver Jar to Classpath","id":"add-the-jdbc-driver-jar-to-classpath","depth":2},{"value":"Create a New Data Source","id":"create-a-new-data-source","depth":2},{"value":"Configure your JDBC Connection","id":"configure-your-jdbc-connection","depth":2},{"value":"Create Reports","id":"create-reports","depth":3}],"frontmatter":{"seo":{"title":"Jaspersoft Ireport Export Integration"}},"lastModified":"2026-03-12T05:20:04.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/int/jaspersoft-ireport-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}