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-5406) Allow spark_submit_hook to run without pip install kubernetes/airflow[kubernetes]
Date Fri, 27 Dec 2019 12:56:01 GMT

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

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

Commit fc481330d0d8eb3892670c0317166e2971a87270 in airflow's branch refs/heads/v1-10-test
from tooptoop4
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=fc48133 ]

[AIRFLOW-5406] allow spark without kubernetes (#6921)

(cherry picked from commit 56ed5fc03ca539d69eb7c6fc96fec64eb3e0fb89)


> Allow spark_submit_hook to run without pip install kubernetes/airflow[kubernetes]
> ---------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-5406
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5406
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: dependencies, executor-kubernetes, executors
>    Affects Versions: 1.10.5
>            Reporter: t oo
>            Assignee: t oo
>            Priority: Blocker
>             Fix For: 2.0.0
>
>
> Allow spark_submit_hook to run without pip install kubernetes/airflow[kubernetes]
> k8s dependencies causing issues for non-k8s users based on 1.10.6:
> *settings.py:*
> from airflow.contrib.kubernetes.pod import Pod
> def pod_mutation_hook(pod):
> *models/__init__.py*
> from airflow.models.kubernetes import KubeWorkerIdentifier, KubeResourceVersion
> *executors/__init__.py*
> KubernetesExecutor = "KubernetesExecutor"
> elif executor_name == Executors.KubernetesExecutor:
>         from airflow.contrib.executors.kubernetes_executor import KubernetesExecutor
>         return KubernetesExecutor()
> *spark_submit_hook.py*
> from airflow.contrib.kubernetes import kube_client



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message