この記事では、Talend で簡単にCData JDBC Driver for ADP をワークフローに統合してADP データ連携する方法を説明します。ここではCData JDBC Driver for ADP を使ってTalend でADP をジョブフローに転送します。
JDBC データソースとしてTalend でADP に接続
下記の手順に従って、ADP にJDBC 接続を確立します:
- ADP を新しいデータベース接続を追加:新しく接続を追加するには、[Metadata]ノードを展開し[Db Connections]ノードを右クリックして[Create Connection]をクリックします。
- ウィザードが表示されたら、接続に名前を入力します。
次のページで、[DB Type]メニューから[Generic JDBC]を選択してJDBC URL を入力します。
Connect to ADP by specifying the following properties:
- SSLClientCert: Set this to the certificate provided during registration.
- SSLClientCertPassword: Set this to the password of the certificate.
- UseUAT: The connector makes requests to the production environment by default. If using a developer account, set UseUAT = true.
- RowScanDepth: The maximum number of rows to scan for the custom fields columns available in the table. The default value will be set to 100. Setting a high value may decrease performance.
The connector uses OAuth to authenticate with ADP. OAuth requires the authenticating user to interact with ADP using the browser. For more information, refer to the OAuth section in the Help documentation.
以下は一般的なJDBC URL です:
jdbc:adp:OAuthClientId=YourClientId;OAuthClientSecret=YourClientSecret;SSLClientCert='c:\cert.pfx';SSLClientCertPassword='admin@123'
- インストールディレクトリの[lib]サブフォルダ内にあるcdata.jdbc.adp.jar ファイルへのパスを入力します。
- 接続を右クリックして[Retrieve Schema]をクリックします。
- デフォルトオプションで[Next]をクリックしインポートしたいテーブルを選択します。
- デフォルトオプションでウィザードを終了します。
Workers テーブルをフラットファイルに出力
下記の手順に従って、Workers テーブルをフラットファイル出力コンポーネントに転送します:
- [Table Schemas]ノードで、テーブルをワークスペース内にドラッグします。
- ダイアログが表示されたら[tJDBCInput]コンポーネントを選択します。
- 次に、[tFileOutputDelimited]コンポーネントをPalette の[Business Intelligence]タブからワークスペース内にドラッグします。
- Workers tJDBCInput コンポーネントを右クリックしてベクタを出力ファイルにドラッグします。
プロジェクトを実行してデータを転送します。