Skip to main content

Publishing and Export

info

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.

PageTask
Publish to MQTTPublish from TMQ to MQTT and verify messages through downstream subscribers.
Publish to KafkaConfigure data/metadata publishing, target Topics, and downstream verification.
Export ParquetChoose a read-only query and check the output host, file completion, and content.
Export CSVExport query results with taosx run; check headers, values, and overwrite risks.
Flink Cross-Source ReadsFind independent Flink connector entry points and check read and cross-source processing boundaries.
Publish to MySQLConfigure subscription SQL, a transactional table, and a composite key; check timestamps and target rows.
Publish to PostgreSQLConfigure an existing database and schema, target table, and primary key; verify continuous writes.
Publish to SQL ServerConfigure the target schema, encryption, primary key, and timestamp types; verify continuous writes.
note

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.