kafka-connect-bigquery is a Kafka Connect connector for Google BigQuery. It is available in the StreamNative Cloud.
This connector is available as a built-in connector on StreamNative Cloud.
Prerequisites
The following prerequisites are required before setting up the BigQuery connector.- A valid Google Cloud account authorized for resource creation.
- A BigQuery project, which can be set up via the Google Cloud Console.
- A dataset within the BigQuery project.
- A service account with access to the BigQuery project that hosts the dataset; this account can be created in the Google Cloud Console.
- Ensure the service account is granted access to the BigQuery project containing the dataset; create and download a key in JSON format when setting up the service account.
- According to
GCP specifications <https://cloud.google.com/bigquery/docs/access-control>, the service account will either need the BigQueryEditor primitive IAM role or the bigquery.dataEditor predefined IAM role. The minimum permissions are as follows:
Quick Start
- Setup the kcctl client: doc
- Create a GSA(google service account) in Google Cloud, and get the private key of it
-
Create a secret in StreamNative Console, and save the GSA private key’s content , please refer to: doc, let’s say the secret name is
gcp, and key isauth - Create a dataset in Google Cloud
-
Create a json file like below:
-
Run the following command to create the connector:
Configuration
Thekafka-connect-bigquery connector is configured using the following properties: