tAvroOutput properties for Apache Spark Structured Streaming | Talend Components for Jobs Help
Skip to main content Skip to complementary content

tAvroOutput properties for Apache Spark Structured Streaming

Last updated: 9/30/2026

These properties are used to configure tAvroOutput running in the Spark Structured Streaming Job framework.

The Spark Structured Streaming tAvroOutput component belongs to the File 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
Define a storage configuration component

Select the configuration component to be used to provide the configuration information for the connection to the target file system such as HDFS.

If you leave this check box clear, the target file system is the local system.

The configuration component to be used must be present in the same Job. For example, if you have dropped a tHDFSConfiguration component in the Job, you can select it to write the result in a given HDFS system.

Property Type

Select the way the file path and the schema will be set.

  • Built-In: The file path and the schema will be set locally for this component.

  • Repository: The file details stored centrally in Repository > Metadata will be reused by this component.

    You need to click the [...] button next to it and in the pop-up Repository Content dialog box, select the file to be reused, and all related properties will be automatically filled in.

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.

  • Built-In: create and store the schema locally for this component only.

  • Repository: reuse a schema created and stored in the Repository across projects and Job designs.

Click Edit schema to modify the schema. If you modify a Repository schema, the available options include:

  • View schema: view the schema without modifying it.

  • Change to built-in property: change the schema to Built-in for local changes.

  • Update repository connection: modify the Repository schema and choose whether to propagate the changes to other Jobs.

Folder Browse to or enter the path to the directory where the component writes Avro files. This path must point to a folder, not a file.

To write to cloud storage, add the corresponding configuration component to the Job. For example, use tS3Configuration for Amazon S3, tGSConfiguration for Google Cloud Storage, or tAzureFSConfiguration for Azure Data Lake Storage.

Checkpoint location Enter the path to the directory where Spark stores checkpoint data for the streaming query. Checkpointing enables fault tolerance and allows a failed query to resume from where it stopped.

To use a cloud storage path, add the corresponding configuration component to the Job. For example, use tS3Configuration for Amazon S3, tGSConfiguration for Google Cloud Storage, or tAzureFSConfiguration for Azure Data Lake Storage.

Action Select the write operation to apply to the output directory:
  • Append: adds data to an existing directory, or creates a new directory if none exists.
  • Overwrite: clears the existing data in the Folder directory, then creates the output files and writes data to them. The checkpoint location is not cleared.
Compression Select this check box to compress the output data blocks, then select a compression codec from the drop-down list, for example Snappy or Deflate. If cleared, the output data is uncompressed.
Set trigger Select this check box to configure how often the streaming query processes data. When selected, choose one of the following trigger types:
  • Available now: processes all available data in a single batch, then stops the query.
  • Fixed interval: runs the query at a fixed time interval. Enter the interval duration in the field that appears, for example 10 seconds.

Advanced settings

Properties Description
Write empty batches Select this check box to allow the Job to write an empty batch when the incoming micro-batch contains no data. This check box is selected by default.

Usage

Usage guidance Description
Usage rule

This component is used as an end component and requires an input 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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!