Skip to main content
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.
  1. A valid Google Cloud account authorized for resource creation.
  2. A BigQuery project, which can be set up via the Google Cloud Console.
  3. A dataset within the BigQuery project.
  4. A service account with access to the BigQuery project that hosts the dataset; this account can be created in the Google Cloud Console.
  5. 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.
  6. 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

  1. Setup the kcctl client: doc
  2. Create a GSA(google service account) in Google Cloud, and get the private key of it
  3. 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 is auth
  4. Create a dataset in Google Cloud
  5. Create a json file like below:
  6. Run the following command to create the connector:

Configuration

The kafka-connect-bigquery connector is configured using the following properties: