![]() ![]() I installed Python, Docker on my machine and am trying to import the from import KubernetesPodOperator but when I connect the docker, I get the message that the module does not exist. "/usr/local/lib/python3.6/site-packages/airflow/contrib/operators/kubernetes_pod_operator.py",Ī import kube_client, pod_generator, Airflow - ModuleNotFoundError: No module named kubernetes. Step 1: The primary component of building a Docker image is executing a pip install as follows: RUN pip install -upgrade pip RUN pip install apache-airflow1.10. _call_with_frames_removed webserver_1 | File "/usr/local/airflow/dags/example_airflow.py", line 3, inĪ_pod_operator import Airflow Kubernetes Setup: Building the Docker Image. ![]() The next step would be to exec -it into the webserver or scheduler pod and creating Airflow users. _load webserver_1 | File "", line 665, in _load_unlocked webserver_1 | File "", line 678, in exec_module webserver_1 Run the following command from the path where your airflow-local.yaml is located: helm install -namespace 'airflow' -name 'airflow' -f airflow-local.yaml airflow/. Line 172, in load_source webserver_1 | module = _load(spec) Webserver_1 | Traceback (most recent call last): webserver_1 |įile "/usr/local/lib/python3.6/site-packages/airflow/models.py", lineģ77, in process_file webserver_1 | m = imp.load_source(mod_name,įilepath) webserver_1 | File "/usr/local/lib/python3.6/imp.py", Passing = KubernetesPodOperator(namespace='default',įailing = KubernetesPodOperator(namespace='default', Kubectl CLI to interact with your cluster Helm to manage your charts and install airflow in an easy way. Start = DummyOperator(task_id='run_this_first', dag=dag) 'kubernetes_sample', default_args=default_args, schedule_interval=timedelta(minutes=10)) Is there a specific machine location that I should check if the library is actually installed? What can I do to solve this?įrom _pod_operator import KubernetesPodOperatorįrom _operator import DummyOperatorįrom import parse_template_string I have already done the pip install apache-airflow and I still have the same error. I installed Python, Docker on my machine and am trying to import theįrom _pod_operator import KubernetesPodOperator but when I connect the docker, I get the message that the module does not exist. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |