BigQuery connector code samplesStay organized with collectionsSave and categorize content based on your preferences.
All Dataproc clusters come with theBigQuery connector for Hadoopbuilt in. This means
you can quickly read and write BigQuery data to and from
Dataproc.
Use Spark
SeeUsing the BigQuery Connector with Sparkfor an example on using Spark with the BigQuery connector for Hadoop.
This example should work for Dataproc 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 2025-11-11 UTC."],[],[]]