# tAvroStreamInput properties for Apache Spark Structured Streaming

[Preview](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Introduction/feature-preview-program-overview.htm)

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

The Spark Structured Streaming tAvroStreamInput 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<br>information for the connection to the target file system such as HDFS.<br><br>If you leave this check box clear, the target file system is the local<br>system.<br><br>The configuration component to be used must be present in the same Job.<br>For example, if you have dropped a tHDFSConfiguration component in the Job, you can select it to write<br>the result in a given HDFS system. |
| Property Type | Select the way the file path and the schema will be set.<br><br><ul> <li> <p> <span>Built-In</span>: The file path and the schema will be                                set locally for this component.</p> </li> <li> <p> <span>Repository</span>: The file details stored centrally                                in <span><span>Repository</span><abbr> &gt; </abbr><span>Metadata</span></span> will be reused by this component.</p> <p>You need to click                                the <span>[...]</span> button next to it and in the pop-up                                    <span>Repository Content</span> dialog box, select the                                file to be reused, and all related properties will be automatically                                filled in.</p> </li> </ul> |
| Schema and Edit schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br><ul> <li> <p> <span>Built-In</span>: You create and store the schema locally for this component                only.</p> </li> <li> <p> <span>Repository</span>: You have already created the schema and stored it in the                Repository. You can reuse it in various projects and Job designs.</p> </li> </ul><br><br>Click Edit schema to make changes to<br>the schema. If you make changes, the schema automatically becomes built-in.<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul> |
| Folder | Browse to or enter the path to the directory with data to read. If the path<br>points to a folder, the component reads all Avro files in that folder. To read<br>from cloud storage, add the corresponding configuration component to the Job. For<br>example, use tS3Configuration for Amazon S3,<br>tGSConfiguration for Google Cloud Storage, or<br>tAzureFSConfiguration for Azure Data Lake Storage. |
| Enable watermarking | Select this check box to activate watermarking and select the time mode to<br>be used:<br><br><ul> <li><span>Event time</span>: Select to use a timestamp column                     representing when each event occurred, then select the column in the                        <span>Watermark column (timestamp)</span> drop-down list.</li> <li><span>Processing time</span>: Select to use the time when Spark                     reads each record.</li> </ul><br><br>In the Watermark delay field, specify how long Spark<br>waits for late data before finalizing each window. |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is used as a start component and requires an output link.<br><br>This component, along with the Spark Structured Streaming component Palette it belongs to,<br>appears only when you are creating a Spark Structured Streaming Job. |
| Spark Connection | You need to use the Structured Streaming Configuration<br>tab in the Run view to define the connection to a Spark cluster for<br>the whole Job.<br><br>This connection is effective on a per-Job basis. |