This topic describes how to create a DLA sink connector to synchronize data from ApsaraMQ for Kafka to Data Lake Analytics (DLA) for analytics and computing.
Prerequisites
- DLA
- DLA is activated. For more information, see Activate DLA.
- A virtual cluster that uses the Spark engine is created. For more information, see Create a virtual cluster.
- The AliyunDLAFullAccess policy is attached to the RAM user that is created to use the connector feature. For more information, see Manage RAM users.
- The RAM user that is created to use the connector feature is bound to a DLA sub-account. For more information, see Bind a RAM user with a DLA sub-account.
- ApsaraMQ for Kafka
- A Message Queue for Apache Kafka instance is created. For more information, see Access from a VPC.
- A topic is created in the Message Queue for Apache Kafka instance. For more information, see the "Step 2: Create a topic" section of the Connect a Message Queue for Apache Kafka instance to Filebeat as an input topic.
- Messages are sent to the created topic. For more information, see Send a message.
Create a DLA sink connector
- Log on to the ApsaraMQ for Kafka console.
- In the Resource Distribution section of the Overview page, select the region where your instance is deployed.
- In the left-side navigation pane, click Connectors.
- On the Connectors page, click Create Connector.
- Complete the Create Connector wizard.
- If you have not created a lakehouse, you are redirected to the Lakehouse Lake warehouse integration page, where you can create a lakehouse. If you have created a lakehouse, you are redirected to the New workload page. On the Kafka data source tab, you can create and start a workload for data analytics. On the Connectors page of the ApsaraMQ for Kafka console, you can view the created DLA sink connector. You can also perform the following operations in the Actions column:
- Click Details to view the configurations of the DLA sink connector.
- Click View Tasks to go to the DLA console and start a workload for data analytics.
- Click Delete to delete the DLA sink connector.