Synchronize data to OTS
Take note of the following items when you create a DataConnector to synchronize data to Tablestore (OTS):
You must obtain the endpoint of OTS. An OTS instance is created and a table is created in the OTS instance.
Only the owner or creator of a DataHub topic has the permissions to manage DataConnectors of the topic, such as the permissions to create or delete a DataConnector.
The primary key columns of the OTS table must have a one-to-one mapping with the fields in the DataHub topic. However, their orders can be different.
If you use a temporary access credential from Security Token Service (STS), the service-linked role for DataHub is automatically created. Then, DataHub uses the service-linked role to synchronize data to OTS.
Procedure: In the left-side navigation pane of the DataHub console, click Project Manager. On the Project List page, find a project and click View in the Actions column. On the details page of the project, find a topic and click View in the Actions column. On the details page of the topic, click Connector in the upper-right corner. In the Create Connector panel, click Tablestore, set the parameters as required, and then click Create.
Go to the details page of a topic, as shown in the following figure.
Select Tablestore and set the parameters as required, as shown in the following figure.
On the Connector tab, check the status of data synchronization.
The internal network endpoint of OTS.
The name of the OTS instance.
The OTS table to which data is synchronized.
Data type mappings
The primary key columns of the OTS table must have a one-to-one mapping with the fields in the DataHub topic. Field names in DataHub are case-insensitive. If the name of a primary key in the OTS table contains uppercase letters, these uppercase letters are converted to lowercase letters in the name of the mapped field in the DataHub topic.
You can synchronize only data in topics of the TUPLE type to an OTS table.
You can write up to 200 rows of data to OTS at a time. For more information about the limits on OTS, see General limits.