[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

k8s example DAGs

 Is it possible to make kubernetes examples installed optionally?

We don't use Kubernetes and a bare Airflow install fills logs with
following :

2018-04-22 19:49:04,718 ERROR - Failed to import:
> /opt/airflow/airflow-20180420/src/apache-airflow/airflow/
> example_dags/
> Traceback (most recent call last):
>   File "/opt/airflow/airflow-20180420/src/apache-airflow/airflow/",
> line 300, in process_file
>     m = imp.load_source(mod_name, filepath)
>   File "/opt/airflow/airflow-20180420/src/apache-airflow/
> airflow/example_dags/", line 19, in <module>
>     from airflow.contrib.operators.kubernetes_pod_operator import
> KubernetesPodOperator
>   File "/opt/airflow/airflow-20180420/src/apache-airflow/
> airflow/contrib/operators/", 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/", line 25, in <module>
>     from kubernetes import watch
> ImportError: No module named kubernetes

Would be great to make examples driven by what modules installed if they
have external dependencies,


Ruslan Dautkhanov

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-airflow-development/msg03162.html on line 102
Call Stack
10.0033358472{main}( ).../msg03162.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-airflow-development/msg03162.html on line 102
Call Stack
10.0033358472{main}( ).../msg03162.html:0