camel-google-pubsub-source-kafka-connector source configuration
Connector Description: Consume messages from Google Pubsub. The serviceAccountKey property needs to be encoded in base64, so when you pass it as parameter, don’t forget to encode it.
When using camel-google-pubsub-source-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-google-pubsub-source-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this source connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.googlepubsubsource.CamelGooglepubsubsourceSourceConnector
The camel-google-pubsub-source source connector supports 6 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required The Google Cloud PubSub Project Id. |
HIGH |
||
Required The Subscription Name. |
HIGH |
||
Required The Service account key that can be used as credentials for the PubSub publisher/subscriber. |
HIGH |
||
If Synchronously pull batches of messages is enabled or not. |
false |
MEDIUM |
|
The max number of messages to receive from the server in a single API call. |
1 |
MEDIUM |
|
The number of parallel streams consuming from the subscription. |
1 |
MEDIUM |
The camel-google-pubsub-source source connector has no converters out of the box.
The camel-google-pubsub-source source connector has no transforms out of the box.
The camel-google-pubsub-source source connector has no aggregation strategies out of the box.