この記事では、Talend で簡単にCData JDBC Driver for AzureSynapse をワークフローに統合してAzure Synapse データ連携する方法を説明します。ここではCData JDBC Driver for AzureSynapse を使ってTalend でAzure Synapse をジョブフローに転送します。
JDBC データソースとしてTalend でAzure Synapse に接続
下記の手順に従って、Azure Synapse にJDBC 接続を確立します:
- Azure Synapse を新しいデータベース接続を追加:新しく接続を追加するには、[Metadata]ノードを展開し[Db Connections]ノードを右クリックして[Create Connection]をクリックします。
- ウィザードが表示されたら、接続に名前を入力します。
次のページで、[DB Type]メニューから[Generic JDBC]を選択してJDBC URL を入力します。
Connecting to Azure Synapse
In addition to providing authentication (see below), set the following properties to connect to a Azure Synapse database:
- Server: The server running Azure. You can find this by logging into the Azure portal and navigating to Azure Synapse Analytics -> Select your database -> Overview -> Server name.
- Database: The name of the database, as seen in the Azure portal on the Azure Synapse Analytics page.
Authenticating to Azure Synapse
Connect to Azure Synapse using the following properties:
- User: The username provided for authentication with Azure.
- Password: The password associated with the authenticating user.
以下は一般的なJDBC URL です:
jdbc:azuresynapse:User=myuser;Password=mypassword;Server=localhost;Database=Northwind;
- インストールディレクトリの[lib]サブフォルダ内にあるcdata.jdbc.azuresynapse.jar ファイルへのパスを入力します。
- 接続を右クリックして[Retrieve Schema]をクリックします。
- デフォルトオプションで[Next]をクリックしインポートしたいテーブルを選択します。
- デフォルトオプションでウィザードを終了します。
Products テーブルをフラットファイルに出力
下記の手順に従って、Products テーブルをフラットファイル出力コンポーネントに転送します:
- [Table Schemas]ノードで、テーブルをワークスペース内にドラッグします。
- ダイアログが表示されたら[tJDBCInput]コンポーネントを選択します。
- 次に、[tFileOutputDelimited]コンポーネントをPalette の[Business Intelligence]タブからワークスペース内にドラッグします。
- Products tJDBCInput コンポーネントを右クリックしてベクタを出力ファイルにドラッグします。
プロジェクトを実行してデータを転送します。