roelhogervorst commented on a change in pull request #8240: GCP SparkR Example
URL: https://github.com/apache/airflow/pull/8240#discussion_r407961722
##########
File path: airflow/providers/google/cloud/example_dags/example_dataproc.py
##########
@@ -104,6 +105,12 @@
"pyspark_job": {"main_python_file_uri": PYSPARK_URI},
}
+SPARKR_JOB = {
+ "reference": {"project_id": PROJECT_ID},
+ "placement": {"cluster_name": CLUSTER_NAME},
+ "sparkRJob": {"mainRFileUri": SPARKR_URI},
Review comment:
I don't think that works for dataproc. I will have to check but I thought
the REST api only accepts sparkRJob:
https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs#Job
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services