Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Nesta página, descrevemos como configurar o Datastream para replicação em
tabelas Iceberg do BigLake no BigQuery.
As tabelas do BigLake Iceberg oferecem a mesma experiência totalmente gerenciada das tabelas padrão do BigQuery, mas armazenam dados em buckets do Cloud Storage de propriedade do cliente no formato de tabela do Apache Iceberg e no formato de arquivo Parquet. Você pode consultar e analisar dados usando os recursos do BigQuery, mantendo os dados nos seus próprios buckets de armazenamento.
Configurar o streaming para tabelas do BigLake Iceberg
Para configurar o fluxo para ingerir dados em tabelas do BigLake Iceberg:
Conceda à sua conexão de recursos do Cloud acesso ao bucket do Cloud Storage criado. Para fazer isso, adicione a permissão do IAM storage.admin à conta de serviço da conexão:
Para informações sobre como criar um fluxo de tabelas Iceberg do BigLake usando o console do Google Cloud , consulte Criar um fluxo.
Para informações sobre como criar uma solicitação para transmitir dados para
tabelas do BigLake Iceberg usando REST, Google Cloud CLI ou Terraform, consulte
Gerenciar streams usando a API.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-12 UTC."],[],[],null,["# Configure BigLake Iceberg tables in BigQuery\n\nThis page describes how to configure Datastream for replication to\nBigLake Iceberg tables in BigQuery.\n\nBigLake Iceberg tables offer the same fully managed experience as\nstandard BigQuery tables, but store data in customer-owned Cloud Storage\nbuckets in the Apache Iceberg table format and Parquet file format. You can\nquery and analyse data using BigQuery capabilities while keeping the\ndata in your own storage buckets.\n| **Note:** Streaming to BigLake Iceberg tables is supported only in the **append-only** write mode. For more information, see [Configure write mode](/datastream/docs/destination-bigquery#configure-write-mode).\n\nConfigure streaming to BigLake Iceberg tables\n---------------------------------------------\n\nTo set up your stream to ingest data into BigLake Iceberg tables:\n\n1. [Create a Cloud Storage bucket](/storage/docs/creating-buckets) where you want to store your data.\n2. Create a Cloud resource connection in BigQuery. For information about how to create this type of connection, see [Create and set up a Cloud resource connection](/bigquery/docs/create-cloud-resource-connection).\n3. Get the identifier of the connection service account:\n\n bq show --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e --connection --project_id=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n \u003cvar translate=\"no\"\u003eCONNECTION_NAME\u003c/var\u003e\n\n4. Grant your Cloud resource connection access to the Cloud Storage bucket that\n you created. To do this, add the `storage.admin` IAM permission\n to the connection service account:\n\n gcloud storage buckets add-iam-policy-binding gs://\u003cvar translate=\"no\"\u003eYOUR_GCS_BUCKET\u003c/var\u003e \\\n --member=serviceAccount:\u003cvar translate=\"no\"\u003eYOUR_SERVICE_ACCOUNT_ID\u003c/var\u003e \\\n --role=roles/storage.admin\n\n5. Create a BigLake Iceberg tables stream.\n\n For information about how to create a BigLake Iceberg tables stream\n using the Google Cloud console, see\n [Create a stream](/datastream/docs/create-a-stream).\n\n For information about how to create a request to stream data to\n BigLake Iceberg tables using REST, `Google Cloud CLI` or Terraform, see\n [Manage streams using the API](/datastream/docs/manage-streams#createastream-blmt).\n\n| **Note:** The Cloud Storage bucket, BigQuery dataset, and the Datastream connection must all be in the same region.\n\nWhat's next\n-----------\n\n- To learn more about streams, see [Stream lifecycle](/datastream/docs/stream-states-and-actions).\n- To learn how to create a stream, see [Create a stream](/datastream/docs/create-a-stream).\n- To learn how to create a connection profile that you can use with a BigLake Iceberg tables stream, see [Create a connection profile for BigQuery](/datastream/docs/create-connection-profiles#cp4bigquery)."]]