Configure DataHub input
You can use a Real-time Synchronization task to capture data from DataHub in real time. This topic shows you how to configure the DataHub input component for the task in a simple drag-and-drop editor.
How it works
When you start a Real-time Synchronization task, it runs continuously. The task waits for new data in the source DataHub, reads it, and then writes it to the destination. The DataHub input component provides the following features:
-
Reads data in real time.
-
Performs concurrent reads based on the number of DataHub shards.
Procedure
Log on to the DataWorks console. In the target region, click in the left-side navigation pane. Select a workspace from the drop-down list and click Go to Data Development.
-
Hover over the
icon and choose . Alternatively, expand a scheduled workflow, right-click it, and choose .
-
In the Create Node dialog box, set Synchronization Method to Single Table (Topic) to Single Table (Topic) ETL, enter a Name, and select a Path.
-
Click Confirm.
-
On the configuration page of the Real-time Synchronization node, click and drag it to the canvas.
-
Click the DataHub node. In the Node Configuration dialog box, configure the parameters.
Parameter
Description
Data Source
Select a configured DataHub data source. Only DataHub data sources are supported.
If no data source is configured, click New data source on the right to go to the page and create a data source. For more information, see Configure a DataHub data source.
Topic
Select the topic to synchronize from the current data source. You can click Data Preview on the right to confirm your selection.
Use Subscription Feature
If you enable this feature, a Subscription ID is automatically created to subscribe to data from DataHub, which improves stability and performance. To prevent failures, do not delete a Subscription ID that is in use on DataHub.
Output Field
Select the fields to synchronize.
-
Click the
icon in the toolbar to save the configuration.