tPubSubInput properties for Apache Spark Structured Streaming
Last updated: 9/30/2026These properties are used to configure tPubSubInput running in the Spark Structured Streaming Job framework.
The Spark Structured Streaming tPubSubInput component belongs to the Messaging family.
The streaming version of this component is available in Talend Real-Time Big Data Platform and in Talend Data Fabric.
Basic settings
| Properties | Description |
|---|---|
| Schema and Edit schema |
A schema is a row description. It defines the fields (columns) processed by the component. When you create a Spark Job, avoid the reserved word line when naming fields.
Click Edit schema to modify the schema. If you modify a Repository schema, the available options include:
|
| Google Cloud configuration | Select the tGoogleCloudConfiguration component that provides the Google Cloud connection settings for this component. |
| Message format | Select the format of the Pub/Sub messages from the drop-down list:
|
| Pub/Sub topic | Enter the name of the Pub/Sub topic to consume messages from. |
| Pub/Sub subscription | Enter the name of the Pub/Sub subscription from which to consume messages. The subscription must be connected to the specified topic. |
| Enable watermarking | Select this check box to activate watermarking and select the time mode to
be used:
In the Watermark delay field, specify how long Spark waits for late data before finalizing each window. |
Advanced settings
| Properties | Description |
|---|---|
| Max messages | Enter the maximum number of Pub/Sub messages fetched per micro-batch. |
| Acknowledge deadline (seconds) | Enter the acknowledgment deadline in seconds. Messages that are not acknowledged within this window are redelivered by Pub/Sub. |
| Pub/Sub options | Add custom Pub/Sub connector options as key-value pairs by clicking the plus button. |
Usage
| Usage guidance | Description |
|---|---|
| Usage rule |
This component is used as a start component and requires an output link. This component, along with the Spark Structured Streaming component Palette it belongs to, appears only when you are creating a Spark Structured Streaming Job. |
| Spark Connection |
You need to use the Structured Streaming Configuration tab in the Run view to define the connection to a Spark cluster for the whole Job. This connection is effective on a per-Job basis. |