Publishing and Export
This chapter covers continuous MQTT, Kafka, and relational database publishing, one-time Parquet and CSV exports, and independent Flink cross-source read jobs. Continuous publishing and file export are different task types. Both are verified at the receiving end. Exported files do not automatically download to the browser.
Where to operate: for Kafka and Parquet, use taosExplorer → Data Publishing or taosx run. This chapter uses taosx run for MQTT and CSV. For MySQL, PostgreSQL, and SQL Server, use taosExplorer → Data Out; these targets require Enterprise Edition. Manage Flink jobs in Flink; they are not taosX tasks.
Distinguish continuous publishing from one-time export first. Continuous publishing subscribes to TDengine data and sends it to external Brokers or relational databases. Message publishing requires topic, consumer-group, and downstream-protocol maintenance; relational database publishing requires target-table, primary-key, and transactional-write checks. File export reads one query result into a file. It is neither database backup nor continuous synchronization.
| Page | Task |
|---|---|
| Publish to MQTT | Publish from TMQ to MQTT and verify messages through downstream subscribers. |
| Publish to Kafka | Configure data/metadata publishing, target Topics, and downstream verification. |
| Export Parquet | Choose a read-only query and check the output host, file completion, and content. |
| Export CSV | Export query results with taosx run; check headers, values, and overwrite risks. |
| Flink Cross-Source Reads | Find independent Flink connector entry points and check read and cross-source processing boundaries. |
| Publish to MySQL | Configure subscription SQL, a transactional table, and a composite key; check timestamps and target rows. |
| Publish to PostgreSQL | Configure an existing database and schema, target table, and primary key; verify continuous writes. |
| Publish to SQL Server | Configure the target schema, encryption, primary key, and timestamp types; verify continuous writes. |
MQTT and Kafka publishing use different message formats; consistency between them is not promised. Receipt by an external Broker does not mean correct business-consumer processing. Exported files stay on the export execution host, not automatically in the browser. Export verification completes only after file content is read and checked.