Repository navigation
GCP SparkR operator - #7864
GCP SparkR operator#7864roelhogervorst wants to merge 6 commits into
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
|
There was a problem hiding this comment.
Do we need custom operator for R jobs? Can't we use the DataprocSubmitJobOperator?
There was a problem hiding this comment.
The DataprocJobBaseOperator as well as other XJobOperators will be deleted in future:
# TODO: Remove one day
warnings.warn(
"The `{cls}` operator is deprecated, please use `DataprocSubmitJobOperator` instead. You can use"
" `generate_job` method of `{cls}` to generate dictionary representing your job"
" and use it with the new operator.".format(cls=type(self).__name__),
DeprecationWarning,
stacklevel=1
)There was a problem hiding this comment.
Is there an example of how to use the generic DataprocJobBaseOperator for all the jobs yet, @turbaszek?
There was a problem hiding this comment.
There was a problem hiding this comment.
oh that is way easier, I'll create a new PR
|
Hi @roelhogervorst any progress? I am happy to help with running system tests for the new SparkR job :) |
|
I'm so sorry @turbaszek , I completely missed your message. Are you saying we can submit jobs without specifying the type of job? |
572129a to
c6c3f7c
Compare
This PR adds a spark_R operator which will allow you to schedule R, and sparkR jobs on a dataproc cluster. The functionality to run that kind of job is already in dataproc, but for some reason there is no operator in Airflow.
Issue link: WILL BE INSERTED BY boring-cyborg
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.