tPubSubInputAvro
components that run transformations over these messages.
tPubSubInputAvro properties for Apache Spark Streaming
These properties are used to configure tPubSubInputAvro running in the Spark Streaming Job framework.
The Spark Streaming
tPubSubInputAvro component belongs to the Messaging family.
This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.
Basic settings
Define a Goolge Cloud configuration component |
If you are using Dataproc as your Spark cluster, clear this check box. Otherwise, select this check box to allow the Pub/Sub component to use the Google Cloud |
Schema and Edit |
A schema is a row description. It defines the number of fields Note that the schema defined here must correspond exactly to the binary Avro schema of the messages received on Pub/Sub. To guarantee this, you can create another Spark Streaming Job to define a given schema using tWriteAvroFields and write the messages with this schema using tPubSubOutput. |
Topic name |
Enter the name of topic from which you want to consume the messages. |
Subscription name |
Enter the name of the subscription that needs to consume the specified topic. If the subscription exists, it must be connected to the given topic; if |
Advanced settings
Storage level |
From the Storage level drop-down list that is displayed, select how the cached RDDs are For further information about each of the storage level, see https://spark.apache.org/docs/latest/programming-guide.html#rdd-persistence. |
Use hierarchical mode |
Select this check box to map the binary (including hierarchical) Avro schema to the Once selecting it, you need set the following parameter(s):
|
Usage
Usage rule |
This component is used as a start component and requires an output link. |
||
Spark Connection |
In the Spark
Configuration tab in the Run view, define the connection to a given Spark cluster for the whole Job. In addition, since the Job expects its dependent jar files for execution, you must specify the directory in the file system to which these jar files are transferred so that Spark can access these files:
This connection is effective on a per-Job basis. |
||
PubSub access permissions |
When you use Pub/Sub with a Dataproc cluster, ensure that this cluster To do this, you can create the Dataproc cluster by checking
Allow API access to all Google Cloud services in the same project in the advanced options on Google Cloud Platform, or via the command line, assigning the scopes explicitly (the following example is for a low-resource test cluster):
|