airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-2358) make kubernetes examples installed optionally
Date Thu, 10 May 2018 08:34:00 GMT

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

ASF subversion and git services commented on AIRFLOW-2358:
----------------------------------------------------------

Commit f7c33afea65a65017a2470dc1444f99900ddf6e3 in incubator-airflow's branch refs/heads/master
from [~Fokko]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=f7c33af ]

[AIRFLOW-2358][AIRFLOW-201804] Make the Kubernetes example optional

If you havent installed Kubernetes the initdb
operation will fail

Closes #3315 from Fokko/AIRFLOW-2358


> make kubernetes examples installed optionally
> ---------------------------------------------
>
>                 Key: AIRFLOW-2358
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2358
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: examples
>    Affects Versions: Airflow 2.0, 1.10.0
>            Reporter: Ruslan Dautkhanov
>            Assignee: Fokko Driesprong
>            Priority: Major
>              Labels: kubernetes
>             Fix For: 1.10.0
>
>
> Is it possible to make kubernetes examples installed optionally?
>  
> We don't use Kubernetes and a bare Airflow install fills logs with following :
>  
> {quote}2018-04-22 19:49:04,718 ERROR - Failed to import: /opt/airflow/airflow-20180420/src/apache-airflow/airflow/example_dags/example_kubernetes_operator.py
> Traceback (most recent call last):
>   File "/opt/airflow/airflow-20180420/src/apache-airflow/airflow/models.py", line 300,
in process_file
>     m = imp.load_source(mod_name, filepath)
>   File "/opt/airflow/airflow-20180420/src/apache-airflow/airflow/example_dags/example_kubernetes_operator.py",
line 19, in <module>
>     from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
>   File "/opt/airflow/airflow-20180420/src/apache-airflow/airflow/contrib/operators/kubernetes_pod_operator.py",
line 21, in <module>
>     from airflow.contrib.kubernetes import kube_client, pod_generator, pod_launcher
>   File "/opt/airflow/airflow-20180420/src/apache-airflow/airflow/contrib/kubernetes/pod_launcher.py",
line 25, in <module>
>     from kubernetes import watch
> {color:#f6c342}ImportError: No module named kubernetes{color}{quote}
>  
> Would be great to make examples driven by what modules installed if they have external
dependencies.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message