You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Esfahan (JIRA)" <ji...@apache.org> on 2019/08/13 06:31:00 UTC

[jira] [Created] (AIRFLOW-5182) "KubernetesOperator" isn't implemented

Esfahan created AIRFLOW-5182:
--------------------------------

             Summary: "KubernetesOperator" isn't implemented
                 Key: AIRFLOW-5182
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5182
             Project: Apache Airflow
          Issue Type: Bug
          Components: documentation
    Affects Versions: 1.10.4, 1.10.3
            Reporter: Esfahan


h2. Problem

I encountered the following error with `KubernetesOperator`.
{code:java}
Broken DAG: [/root/airflow/dags/sample_k8s.py] cannot import name KubernetesOperator
{code}
h2. Investigation

The following document is written a sample code to describe how to use Kubernetes Executor.
 [https://airflow.apache.org/kubernetes.html#kubernetes-operator]

There is a line `import KubernetesOperator`, but I think it isn't implemented on airflow and it isn't used in this script.
{code:java}
from airflow.contrib.operators import KubernetesOperator
{code}
I couldn't find `KubernetesOperator` in the following dirs.
 * [https://github.com/apache/airflow/tree/1.10.4/airflow/contrib/operators]
 * [https://github.com/apache/airflow/tree/1.10.4/airflow/operators]

Could you check it?



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