[ 
https://issues.apache.org/jira/browse/AIRFLOW-5118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16907535#comment-16907535
 ] 

ASF GitHub Bot commented on AIRFLOW-5118:
-----------------------------------------

idralyuk commented on pull request #5821: [AIRFLOW-5118] Add ability to specify 
optional components in Dataproc…
URL: https://github.com/apache/airflow/pull/5821
 
 
   …ClusterCreateOperator
   
   ### Jira
   
   https://issues.apache.org/jira/browse/AIRFLOW-5118
   
   ### Description
   
   This PR adds ability to specify optional components in 
DataprocClusterCreateOperator
   
   For more info see 
https://cloud.google.com/dataproc/docs/reference/rest/v1/ClusterConfig#Component
   
   ### Tests
   
   One test added: it checks whether the optional components were set correctly
   
   ### Commits
   
   - [X] My commits all reference Jira issues in their subject lines, and I 
have squashed multiple commits if they address the same issue. In addition, my 
commits follow the guidelines from "[How to write a good git commit 
message](http://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Documentation
   
   - [X] In case of new functionality, my PR adds documentation that describes 
how to use it.
     - All the public functions and the classes in the PR contain docstrings 
that explain what it does
     - If you implement backwards incompatible changes, please leave a note in 
the [Updating.md](https://github.com/apache/airflow/blob/master/UPDATING.md) so 
we can assign it to a appropriate release
   
   ### Code Quality
   
   - [X] Passes `flake8`
   
 
----------------------------------------------------------------
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:
us...@infra.apache.org


> Airflow DataprocClusterCreateOperator does not currently support setting 
> optional components
> --------------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-5118
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5118
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: operators
>    Affects Versions: 1.10.3
>            Reporter: Omid Vahdaty
>            Assignee: Igor
>            Priority: Minor
>
> there need to be an option to install optional components via 
> DataprocClusterCreateOperator . components such as zeppelin.
> From the source code of the DataprocClusterCreateOperator[1], the only 
> software configs that can be set are the imageVersion and the properties. As 
> the Zeppelin component needs to be set through softwareConfig 
> optionalComponents[2], the DataprocClusterCreateOperator does not currently 
> support setting optional components. 
>  
> As a workaround for the time being, you could create your clusters by 
> directly using the gcloud command rather than the 
> DataprocClusterCreateOperator . Using the Airflow BashOperator[4], you can 
> execute gcloud commands that create your Dataproc cluster with the required 
> optional components. 
> [1] 
> [https://github.com/apache/airflow/blob/master/airflow/contrib/operators/dataproc_operator.py]
>  
>  [2] 
> [https://cloud.google.com/dataproc/docs/reference/rest/v1/ClusterConfig#softwareconfig]
>  
> [3] [https://airflow.apache.org/howto/operator/bash.html] 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to