"Managed Service for Apache Spark" is the new name for the product formerly known as "Dataproc on Compute Engine" (cluster deployment) and "Google Cloud Serverless for Apache Spark" (serverless deployment).
BigQuery connector code samples
Stay organized with collections
Save and categorize content based on your preferences.
All Managed Service for Apache Spark clusters come with the
BigQuery connector for Hadoop built in. This means
you can quickly read and write BigQuery data to and from
Managed Service for Apache Spark.
Use Spark
See Using the BigQuery Connector with Spark
for an example on using Spark with the BigQuery connector for Hadoop.
This example should work for Managed Service for Apache Spark clusters.
Use Java MapReduce
See Writing a MapReduce Job with the BigQuery Connector
for an example on using Java MapReduce with the BigQuery connector for
Hadoop. This example should work for Managed Service for Apache Spark clusters.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-08 UTC."],[],[]]