{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Jaspersoft Ireport Export Integration","description":"Treasure AIのJasperSoft iReportエクスポート連携方法を解説。JDBCドライバーを使用し、クラウド上で大規模データをJasperSoftで処理する手順を詳しく説明します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"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":["この記事では、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/jdbc-driver-for-presto"},"children":["JDBCドライバー"]},"を活用して、Treasure Dataを",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://jasperforge.org/projects/ireport"},"children":["JasperSoft iReport"]},"と連携する方法について説明します。Treasure DataとJasperSoftを組み合わせることで、既存のJasperSoftインスタンスを使い続けながら、クラウド上でテラバイト規模のデータを処理できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Dataの基本的な知識。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/databases/schema-management"},"children":["Schemaの記事"]},"では、TDスキーマを操作する方法について説明しています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"jaspersoft-ireportのダウンロード","__idx":2},"children":["JasperSoft iReportのダウンロード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["JasperSoft iReportは以下のリンクからダウンロードできます。この記事ではバージョン4.6.0を使用しました。"]},{"$$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":"treasure-data-jdbcドライバーのダウンロード","__idx":3},"children":["Treasure Data JDBCドライバーのダウンロード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ドライバー本体は以下のリンクからダウンロードできます。このドライバーはまだベータ版です。フィードバックをお待ちしております。"]},{"$$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":["このドライバーはTreasure Dataでのみ動作します。ローカルのHadoop/Hiveクラスターなど、他の環境では実行できません。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"データソースとしてtreasure-dataを追加","__idx":4},"children":["データソースとしてTreasure Dataを追加"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["JasperのデータソースとしてTreasure Dataを追加するには、以下の手順に従ってください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"jdbc-driverのjarをclasspathに追加","__idx":5},"children":["JDBC DriverのJarをClasspathに追加"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Preferences -> iReport Tab -> Classpathに移動し、Add Jarボタンを押します。ダウンロードしたJDBCドライバーを選択し、テーブル内のReloadableボックスにチェックを入れます。"]},{"$$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":"新しいデータソースを作成","__idx":6},"children":["新しいデータソースを作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["「Empty datasource」インジケーターの近くにあるデータベースアイコンを押します。タイプ「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":"jdbc接続を設定","__idx":7},"children":["JDBC接続を設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の図に示すようにJDBCパラメーターを設定します。認証情報(メールアドレス + パスワード)を必ず入力してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure DataのJDBCドライバーは「JDBC Driver」ドロップダウンには表示されません。ドロップダウンエリアを選択し、",{"$$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":"レポートの作成","__idx":8},"children":["レポートの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このステップの手順は、JDBCソースを使用したレポート作成と同じです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["まず、File -> New -> Reportに移動してレポートを作成します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["データソースが「TreasureData」(またはJDBC接続に付けた名前)に設定されていることを確認してください"]},"。"]},{"$$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":["ここでは、クエリは以下のようになります。"]},{"$$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":["このサンプルデータについての注意事項:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このテーブルのデータは、典型的なApacheログから取得されたものです。codeフィールドはHTTPステータスコードに対応しています。基本的に、ステータスコードごとのHTTPリクエスト数をカウントしています。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataには、すぐに使える事前定義されたスキーマがありません。したがって、上記のクエリを動作させるには、codeという名前のフィールドのスキーマを追加する必要があります。"]},{"$$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":["残りのセットアップは、他のレポートとまったく同じです。"]},{"$$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":"前提条件","id":"前提条件","depth":1},{"value":"JasperSoft iReportのダウンロード","id":"jaspersoft-ireportのダウンロード","depth":1},{"value":"Treasure Data JDBCドライバーのダウンロード","id":"treasure-data-jdbcドライバーのダウンロード","depth":1},{"value":"データソースとしてTreasure Dataを追加","id":"データソースとしてtreasure-dataを追加","depth":1},{"value":"JDBC DriverのJarをClasspathに追加","id":"jdbc-driverのjarをclasspathに追加","depth":2},{"value":"新しいデータソースを作成","id":"新しいデータソースを作成","depth":2},{"value":"JDBC接続を設定","id":"jdbc接続を設定","depth":2},{"value":"レポートの作成","id":"レポートの作成","depth":3}],"frontmatter":{"seo":{"title":"Jaspersoft Ireport Export Integration","description":"Treasure AIのJasperSoft iReportエクスポート連携方法を解説。JDBCドライバーを使用し、クラウド上で大規模データをJasperSoftで処理する手順を詳しく説明します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/jaspersoft-ireport-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}