# tMapRStreamsInputAvro (deprecated)

Availability-note[Deprecated](https://help.talend.com/r/en-US/Cloud/labels-on-talend-help-center/availability-deprecated)

This content is deprecated.

Transmits messages in the Avro format to the Job that runs transformations over these messages. Only MapR V5.2 onwards is supported by this component.

Information noteDeprecation: Spark Streaming is deprecated beginning with the R2026-09 release. Use Spark Structured Streaming instead.

## tMapRStreamsInputAvro properties for Apache Spark Streaming

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

The Spark Streaming tMapRStreamsInputAvro 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<br>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>Note that the schema of this component is read-only. It stores the<br>message body sent from the message producer. |
| Starting offset | Select the starting point from which the messages of a topic are consumed.<br><br>In MapR Streams, the increasing ID number of a message is called *offset*. When a new consumer group starts, from this list, you can select<br>beginning to start consumption from the oldest message<br>of the entire topic, or select latest to wait for a new<br>message.<br><br>Note that the consumer group takes into account only the offset-committed messages to<br>start from.<br><br>Each consumer group has its own counter to remember the position of a message it has<br>consumed. For this reason, once a consumer group starts to consume messages of a given<br>topic, a consumer group recognizes the latest message only with regard to the position where<br>this group stops the consumption, rather than to the entire topic. Based on this principle,<br>the following behaviors can be expected:<br><br><ul> <li> <p>If you are resuming an existing consumer group, this option determines the                starting point for this consumer group only if it does not already have a committed                starting point. Otherwise, this consumer group starts from this committed starting                point. For example, a topic has <em>100</em> messages. If                an existing consumer group has successfully processed 50 messages, and has committed                their offsets, then the same consumer group restarts from the offset <em>51</em>.</p> </li> <li> <p>If you create a new consumer group or reset an existing consumer group, which, in                either case, means this group has not consumed any message of this topic, then when                you start it from latest, this new group starts and waits for the offset <em>101</em>.</p> </li> </ul> |
| Topic name | Enter the name of the topic from which tMapRStreamsInput<br>receives the feed of messages. You must enter the name of the stream to which this topic<br>belongs. The syntax is *path\_to\_the\_stream:topic\_name*. |
| Set number of records per second to read from<br>each Kafka partition | Enter this number in double quotation marks to limit the size of each batch to<br>be sent for processing.<br><br>For example, if you put *100* and the batch value you<br>define in the Spark configuration tab is *2* seconds, the<br>size from a partition for each batch is *200*<br>messages.<br><br>If you leave this check box clear, the component tries to read all the available messages<br>in one second into one single batch before sending it, potentially resulting in Job that stops responding<br>in case of a huge quantity of messages. |

## Advanced settings

| Properties | Description |
| --- | --- |
| Consumer properties | Add the MapR Streams consumer properties you need to customize to this table. |
| Use hierarchical mode | Select this check box to map the binary (including hierarchical) Avro schema to the<br>flat schema defined in the schema editor of the current component. If the Avro<br>message to be processed is flat, leave this check box clear.<br><br>Once selecting it, you need set the following parameter(s):<br><br><ul> <li> <p> <span>Local path to the avro                    schema</span>: browse to the file which defines the                schema of the Avro data to be processed.</p> </li> <li> <p> <span>Mapping</span>: create the map                between the schema columns of the current component and the data stored                in the hierarchical Avro message to be handled. In the                <span>Node</span> column, you need to                enter the JSON path pointing to the data to be read from the                Avro message.</p> </li> </ul> |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is used as a start component and requires an output link. |
| Spark Connection | In the Spark<br>Configuration tab in the Run<br>view, define the connection to a given Spark cluster for the whole Job. In<br>addition, since the Job expects its dependent jar files for execution, you must<br>specify the directory in the file system to which these jar files are<br>transferred so that Spark can access these files:<br><br><ul> <li> <div> <span>Yarn mode</span> (Yarn client or Yarn cluster):<ul> <li> <p>When using Google Dataproc, specify a bucket in the                                            <span>Google Storage staging bucket</span>                                        field in the <span>Spark configuration</span>                                        tab.</p> </li> <li> <p>When using HDInsight, specify the blob to be used for Job                                        deployment in the <span>Windows Azure Storage                                            configuration</span> area in the <span>Spark                                            configuration</span> tab.</p> </li> <li>When using Altus, specify the S3 bucket or the Azure                                    Data Lake Storage for Job deployment in the <span>Spark                                        configuration</span> tab.</li> <li> <p>When using on-premises distributions, use                                        the configuration component corresponding to the file system                                        your cluster is using. Typically, this system is HDFS and so                                        use <a href="https://help.qlik.com/talend/r/en-US/8.0/components/hdfs/thdfsconfiguration">tHDFSConfiguration</a>.</p> </li> </ul> </div> </li> <li> <p> <span>Standalone mode</span>: use the                            configuration component corresponding to the file system your cluster is                            using, such as <a href="https://help.qlik.com/talend/r/en-US/8.0/components/hdfs/thdfsconfiguration-properties-for-apache-spark-batch">tHDFSConfiguration Apache Spark Batch</a> or <a href="https://help.qlik.com/talend/r/en-US/8.0/components/amazon-s3/ts3configuration-properties-for-apache-spark-batch">tS3Configuration Apache Spark Batch</a>.</p> <p>If you are using Databricks without any configuration component present                            in your Job, your business data is written directly in DBFS (Databricks                            Filesystem).</p> </li> </ul><br><br>This connection is effective on a per-Job basis. |
| Prerequisites | The Hadoop distribution must be properly installed, so as to guarantee the interaction<br>with *Talend Studio*. The following list presents MapR related information for<br>example.<br><br><ul> <li> <p>Ensure that you have installed the MapR client in the machine where                  <span>Talend Studio</span> is,               and added the MapR client library to the PATH variable of that machine. According to               MapR's documentation, the library or libraries of a MapR client corresponding to each               OS version can be found under <em>MAPR_INSTALL\                  hadoop\hadoop-VERSION\lib\native</em>. For example, the library for Windows is <em>\lib\native\MapRClient.dll</em> in the MapR client jar file.</p> <p>Without adding the specified library or libraries, you may encounter the following				error: <span>no MapRClient in java.library.path</span>.</p> </li> <li> <p>Set the <span>-Djava.library.path</span> argument,               for example, in the <span>Job Run VM arguments</span> area               of the <span>Run/Debug</span> view in the <span>Preferences</span> dialog box in the <span>Window</span> menu. This argument provides to <span>Talend Studio</span> the               path to the native library of that MapR client. This allows the subscription-based               users to make full use of the <span>Data viewer</span> to               view locally in <span>Talend Studio</span> the               data stored in MapR.</p> </li> </ul><br><br>For further information about how to install a Hadoop distribution, see the manuals<br>corresponding to the Hadoop distribution you are using. |