Skip to content

Commit

Permalink
connector with version
Browse files Browse the repository at this point in the history
  • Loading branch information
lalelisealstad committed Sep 29, 2024
1 parent eb6243f commit dc6d1d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def transform(df):

def main():
# Path to the BigQuery connector JAR
bigquery_connector_path = 'gs://spark-lib/bigquery/spark-bigquery-latest.jar'
bigquery_connector_path = "gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.41.0.jar"

# Start a PySpark session with BigQuery connector
spark = SparkSession.builder \
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "google_dataproc_workflow_template" "template" {
}
}
software_config {
# Default
image_version = "2.0-debian10"
}
}
}
Expand All @@ -52,7 +52,7 @@ resource "google_dataproc_workflow_template" "template" {
step_id = "job-a722fda0"
pyspark_job {
main_python_file_uri = "gs://${google_storage_bucket.data_bucket.name}/main.py"
jar_file_uris = ["gs://spark-lib/bigquery/spark-bigquery-latest.jar"]
jar_file_uris = ["gs://spark-lib/bigquery/spark-bigquery-with-dependencies_2.12-0.41.0.jar"]
}
}
}
Expand Down

0 comments on commit dc6d1d3

Please sign in to comment.