"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 samplesStay organized with collectionsSave and categorize content based on your preferences.
All Managed Service for Apache Spark clusters come with theBigQuery connector for Hadoopbuilt in. This means
you can quickly read and write BigQuery data to and from
Managed Service for Apache Spark.
Use Spark
SeeUsing the BigQuery Connector with Sparkfor 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
SeeWriting a MapReduce Job with the BigQuery Connectorfor 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."],[],[]]