Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Semua cluster Dataproc dilengkapi dengan
konektor BigQuery untuk Hadoop bawaan. Artinya, Anda dapat membaca dan menulis data BigQuery dengan cepat ke dan dari Dataproc.
Menggunakan Spark
Lihat Menggunakan Konektor BigQuery dengan Spark
untuk mengetahui contoh penggunaan Spark dengan konektor BigQuery untuk Hadoop.
Contoh ini akan berfungsi untuk cluster Dataproc.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-22 UTC."],[[["\u003cp\u003eCloud Dataproc clusters include a built-in BigQuery connector for Hadoop, facilitating seamless data transfer between BigQuery and Cloud Dataproc.\u003c/p\u003e\n"],["\u003cp\u003eSpark users can leverage the BigQuery connector with Cloud Dataproc clusters, as demonstrated in the provided example.\u003c/p\u003e\n"],["\u003cp\u003eJava MapReduce jobs can also utilize the BigQuery connector with Cloud Dataproc clusters, with an example provided for reference.\u003c/p\u003e\n"],["\u003cp\u003eAdditional details about the BigQuery Hadoop Connector are available in its dedicated documentation.\u003c/p\u003e\n"]]],[],null,["# BigQuery connector code samples\n\nAll Dataproc clusters come with the\n[BigQuery connector for Hadoop](/hadoop/bigquery-connector) built in. This means\nyou can quickly read and write BigQuery data to and from\nDataproc.\n\nUse Spark\n---------\n\nSee [Using the BigQuery Connector with Spark](/dataproc/docs/tutorials/bigquery-connector-spark-example)\nfor an example on using Spark with the BigQuery connector for Hadoop.\nThis example should work for Dataproc clusters.\n\nUse Java MapReduce\n------------------\n\nSee [Writing a MapReduce Job with the BigQuery Connector](/dataproc/docs/tutorials/bigquery-connector-mapreduce-example)\nfor an example on using Java MapReduce with the BigQuery connector for\nHadoop. This example should work for Dataproc clusters.\n\nAdditional information\n----------------------\n\nSee the [BigQuery Hadoop Connector](/dataproc/docs/connectors/bigquery)\ndocumentation."]]