id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_79750092 | stackoverflow | DATA_ENGINEERING | How do I auto-create an Airflow admin user in Airflow 3.x with Docker Compose? | How do I auto-create an Airflow admin user in Airflow 3.x with Docker Compose?
I'm new to Airflow and trying to automatically create an admin user when initializing Apache Airflow 3.x using Docker Compose, but it's not being created, and I can't log in.
I’ve tried using the recommended environment variables (_AIRFLOW_... | https://stackoverflow.com/questions/79750092/how-do-i-auto-create-an-airflow-admin-user-in-airflow-3-x-with-docker-compose | docker, yaml, airflow | 1,756,460,520 |
se_79743044 | stackoverflow | DATA_ENGINEERING | Sending logs from Airflow to S3/Minio | Sending logs from Airflow to S3/Minio
I am in the process of setting up Airflow on my Kubernetes cluster using the official Helm chart. I want to push my task instance logs to S3 (well, Minio actually) to a bucket called airflow-logs. To that end, I have this in the overrides values.yaml file:
secret:
- envName: "AI... | https://stackoverflow.com/questions/79743044/sending-logs-from-airflow-to-s3-minio | amazon-s3, logging, airflow, minio | 1,755,844,880 |
se_79744735 | stackoverflow | DATA_ENGINEERING | Trigger DBT core jobs for Snowflake using Airflow | Trigger DBT core jobs for Snowflake using Airflow
Airflow is installed using Docker and it is running fine. Now I am trying to add dbt-core, dbt-snowflake and astronomer-cosmos python packages to the Airflow image in order to run the DBT core jobs using Airflow.
I am trying to add the Python libraries using requiremen... | https://stackoverflow.com/questions/79744735/trigger-dbt-core-jobs-for-snowflake-using-airflow | python, snowflake-cloud-data-platform, airflow, dbt, astronomer | 1,756,022,135 |
se_79748570 | stackoverflow | DATA_ENGINEERING | Airflow backfill job randomly experiences error: Task state changed externally | Airflow backfill job randomly experiences error: Task state changed externally
I am using Google Cloud Composer environment and Apache Airflow to run my DAG.
Almost all tasks are run in deferrable mode, since they are long-running.
I noticed that when running a backfill job for a single DAG-Run, I randomly get the fol... | https://stackoverflow.com/questions/79748570/airflow-backfill-job-randomly-experiences-error-task-state-changed-externally | airflow, google-cloud-composer, airflow-2.x | 1,756,342,609 |
se_54785519 | stackoverflow | DATA_ENGINEERING | Using airflow to run spark streaming jobs? | Using airflow to run spark streaming jobs?
We have in our hadoop cluster Spark Batch jobs and and Spark streaming jobs.
We would like to schedule and manage them both on the same platform.
We came across airflow, Which fits our need for a
"platform to author, schedule, and monitor workflows".
I just want to be ... | https://stackoverflow.com/questions/54785519/using-airflow-to-run-spark-streaming-jobs | apache-spark, streaming, airflow | 1,550,662,839 |
se_79742043 | stackoverflow | DATA_ENGINEERING | Airflow 3.0.0 : Rest API : Not authenticated | Airflow 3.0.0 : Rest API : Not authenticated
I am new to Airflow and was able to configure Airflow 3.0.0 with sample docker compose. It is up and running fine. I am able to login to UI and also run dags on UI.
I actually want to trigger DAG via Rest, so was trying to access the same via default rest api
curl -X GET 'l... | https://stackoverflow.com/questions/79742043/airflow-3-0-0-rest-api-not-authenticated | airflow, airflow-api | 1,755,765,090 |
se_79744247 | stackoverflow | DATA_ENGINEERING | Access task level parameters of databricks job along with parameters passed by airflow job | Access task level parameters of databricks job along with parameters passed by airflow job
I have a airflow DAG which calls databricks job that has a task level parameters defined as job_run_id (job.run_id) and has a type as python_script. When I try to access it using sys.argv and spark_python_task, it only prints th... | https://stackoverflow.com/questions/79744247/access-task-level-parameters-of-databricks-job-along-with-parameters-passed-by-a | python, airflow, azure-databricks | 1,755,952,930 |
se_74501816 | stackoverflow | DATA_ENGINEERING | The datetime in airflow Task instance keeps on updating itself | The datetime in airflow Task instance keeps on updating itself
I created a trigger_date_time from a datetime object like this
trigger_date_time = str(datetime.now(tz=timezone.utc)).replace(' ', '_')
I use this variable in my airflow DAG definition. I noticed that its value keeps on updating as the task instance is be... | https://stackoverflow.com/questions/74501816/the-datetime-in-airflow-task-instance-keeps-on-updating-itself | python-3.x, airflow, directed-acyclic-graphs | 1,668,876,188 |
se_79741934 | stackoverflow | DATA_ENGINEERING | Airflow DAG task dependency issue | Airflow DAG task dependency issue
I have a task dependency like this:
task1 (must succeed)
|
v
+-------------------+
| |
task2-A task2-B
| |
v v
task3-A task3-B
\ /
\ ... | https://stackoverflow.com/questions/79741934/airflow-dag-task-dependency-issue | airflow, airflow-2.x | 1,755,759,031 |
se_64603004 | stackoverflow | DATA_ENGINEERING | Aiflow skipping task on ONE_SUCCESS trigger rule | Aiflow skipping task on ONE_SUCCESS trigger rule
I am using one_success trigger rule so that if anyone of the parent task passes than the child task run which is happening as expected. However, I am getting issue when both are getting failed. In this case, child task is getting skipped instead of fail. Below is the da... | https://stackoverflow.com/questions/64603004/aiflow-skipping-task-on-one-success-trigger-rule | airflow | 1,604,034,431 |
se_54388441 | stackoverflow | DATA_ENGINEERING | Kubernetes pod created through Airflow remains in running state | Kubernetes pod created through Airflow remains in running state
I've set up Airflow in a Kubernetes cluster. To run tasks, I'm using the KubernetesPodOperator.
When I run a task and take a look at kubectl get pods, I see a pod is created correctly and it also completes. However, when I look at Airflow, I see the sta... | https://stackoverflow.com/questions/54388441/kubernetes-pod-created-through-airflow-remains-in-running-state | kubernetes, google-cloud-platform, airflow | 1,548,594,459 |
se_79740440 | stackoverflow | DATA_ENGINEERING | Apache Airflow: Ignore implicit TaskGroup when creating a task | Apache Airflow: Ignore implicit TaskGroup when creating a task
I'm generating dynamically based on JSON files some DAGs.
I'm creating a WHILE loop system with TriggerDagRunOperator (with wait_for_completion=True), triggering a DAG which self-calls itself until a condition met (also with TriggerDagRunOperator).
However... | https://stackoverflow.com/questions/79740440/apache-airflow-ignore-implicit-taskgroup-when-creating-a-task | python, airflow | 1,755,640,960 |
se_79737601 | stackoverflow | DATA_ENGINEERING | Error loading data: 'Engine' object has no attribute 'cursor': chan="stdout": source="task" | Error loading data: 'Engine' object has no attribute 'cursor': chan="stdout": source="task"
I am trying to run a batch process using Apache Airflow. The Extract and Transform stages work very fine but the load stages is giving an error. Here is my code:
from airflow.decorators impor... | https://stackoverflow.com/questions/79737601/error-loading-data-engine-object-has-no-attribute-cursor-chan-stdout-so | sqlalchemy, airflow, etl | 1,755,396,385 |
se_51120240 | stackoverflow | DATA_ENGINEERING | Using Sqoop move tables from MySQL to Hive scheduled using remotely installed Airflow | Using Sqoop move tables from MySQL to Hive scheduled using remotely installed Airflow
I have a scenario where I have a setup of AWS EMR with few applications such as Spark, Hadoop, Hive, HCatalog, Zeppelin, Sqoop, etc. And, I have another server which runs only Airflow.
I am working on a requirement, where I want to... | https://stackoverflow.com/questions/51120240/using-sqoop-move-tables-from-mysql-to-hive-scheduled-using-remotely-installed-ai | amazon-web-services, sqoop, amazon-emr, airflow | 1,530,416,803 |
se_79729224 | stackoverflow | DATA_ENGINEERING | Airflow Error - "ERROR - Detected zombie job" | Airflow Error - "ERROR - Detected zombie job"
I have written a custom operator in Airflow which copies files via SFTP. When there are a large number of files I will get the error "ERROR - Detected zombie job" just a little after 3 minutes of running. I've looked for a solution to this, which seems to be to s... | https://stackoverflow.com/questions/79729224/airflow-error-error-detected-zombie-job | airflow | 1,754,612,753 |
se_79732455 | stackoverflow | DATA_ENGINEERING | Airflow in AWS: Executing hundreds of jobs from metastore based on their dependency throwing error while status update | Airflow in AWS: Executing hundreds of jobs from metastore based on their dependency throwing error while status update
I have hundreds of jobs configured in postgresql metastore with their respective dependencies. I need to pull those jobs from metastore and execute them as per their dependency and track the status of... | https://stackoverflow.com/questions/79732455/airflow-in-aws-executing-hundreds-of-jobs-from-metastore-based-on-their-depende | airflow, mwaa | 1,754,941,976 |
se_78834333 | stackoverflow | DATA_ENGINEERING | Apache Airflow Zombie Job | Apache Airflow Zombie Job
I want to read and make a plot with airflow. The first task is successfully run, but the second (creating the plot) failed. The error says a task exited with the return code Negsignal.SIGABRT and also zombie jobs detected. I have googled, and it say related to GPU and memory, but I am sure my... | https://stackoverflow.com/questions/78834333/apache-airflow-zombie-job | airflow, airflow-webserver, airflow-taskflow | 1,722,859,047 |
se_79726916 | stackoverflow | DATA_ENGINEERING | Accessing Docker Host's Docker Socket from a Containerized Airflow Setup (Permission Denied Issue) | Accessing Docker Host's Docker Socket from a Containerized Airflow Setup (Permission Denied Issue)
I'm running Apache Airflow in Docker using the official docker-compose setup, and I wanted to use the DockerOperator to launch additional containers using the host’s Docker daemon.
To do this, I:
Mounted the Docker ... | https://stackoverflow.com/questions/79726916/accessing-docker-hosts-docker-socket-from-a-containerized-airflow-setup-permis | docker, airflow, docker-in-docker | 1,754,462,961 |
se_79724772 | stackoverflow | DATA_ENGINEERING | How to set starting condition for airflow task group | How to set starting condition for airflow task group
I have the following dag structure:
from datetime import datetime, timedelta
from airflow import DAG
from airflow.utils.task_group import TaskGroup
from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
with DAG(
'irb_test',
... | https://stackoverflow.com/questions/79724772/how-to-set-starting-condition-for-airflow-task-group | python, airflow | 1,754,303,254 |
se_78918962 | stackoverflow | DATA_ENGINEERING | How to ignore "unused expression" warning from Pylance when using bit-shift operator to compose relationships in airflow | How to ignore "unused expression" warning from Pylance when using bit-shift operator to compose relationships in airflow
I am currently developing Airflow DAGs using Python. I am using:
Mypy version: 1.8.0
Python version: 3.11.9
VSCode version: 1.92.2
Pylance version: v2024.8.2
When I use the bit-shift ope... | https://stackoverflow.com/questions/78918962/how-to-ignore-unused-expression-warning-from-pylance-when-using-bit-shift-oper | python, visual-studio-code, airflow | 1,724,762,685 |
se_79647843 | stackoverflow | DATA_ENGINEERING | Apache Airflow: Unable to get remote logging to Azure Blob storage to work | Apache Airflow: Unable to get remote logging to Azure Blob storage to work
I have airflow (2.8.4) deployed in kubernetes using helm and I'm trying to setup remote logging to azure blob storage. I am using an Azure shared key for authentication. When trying to retrieve/write logs to Azure, I'm getting below error:
Erro... | https://stackoverflow.com/questions/79647843/apache-airflow-unable-to-get-remote-logging-to-azure-blob-storage-to-work | azure, airflow, azure-blob-storage, kubernetes-helm, airflow-webserver | 1,748,804,660 |
se_67487543 | stackoverflow | DATA_ENGINEERING | Docker container unhealthy but no error in the logs | Docker container unhealthy but no error in the logs
I am using the official docker-compose file of airflow to spin it up.
Some of my containers seem unhealthy:
34d8698d67e7 apache/airflow:2.0.2 "/usr/bin/dumb-init …" 31 minutes ago Up 28 minutes (unhealthy) 0.0.0.0:5555->5555/tcp, :::5555->5555/tcp, 8080/tcp... | https://stackoverflow.com/questions/67487543/docker-container-unhealthy-but-no-error-in-the-logs | docker, docker-compose, airflow | 1,620,738,964 |
se_62086958 | stackoverflow | DATA_ENGINEERING | Is there a way in airflow where a Daily DAG is dependent on weekly (on weekends) DAG? | Is there a way in airflow where a Daily DAG is dependent on weekly (on weekends) DAG?
I have these Dags DAG_A (runs daily) , DAG_B (runs mon-fri) and DAG_C (runs on sat and sun) where DAG_A is dependent on both DAG_B and DAG_C.
I tried setting the dependencies using External Task Sensor but everytime my scheduler stop... | https://stackoverflow.com/questions/62086958/is-there-a-way-in-airflow-where-a-daily-dag-is-dependent-on-weekly-on-weekends | python-3.x, airflow, data-pipeline | 1,590,758,376 |
se_56119107 | stackoverflow | DATA_ENGINEERING | Apache Airflow: Executor reports task instance finished (failed) although the task says its queued | Apache Airflow: Executor reports task instance finished (failed) although the task says its queued
Our airflow installation is using CeleryExecutor.
The concurrency configs were
# The amount of parallelism as a setting to the executor. This defines
# the max number of task instances that should run simultaneously
# ... | https://stackoverflow.com/questions/56119107/apache-airflow-executor-reports-task-instance-finished-failed-although-the-ta | airflow, executor | 1,557,777,479 |
se_79675200 | stackoverflow | DATA_ENGINEERING | Stream Apache Airflow (3.0.2) Logs to Azure Blob | Stream Apache Airflow (3.0.2) Logs to Azure Blob
here I'm trying to stream (pushed) my airflow logs to azure blob instead of keeping it in container folder.
Current Issue that I'm facing:
even after putting everything as mentioned in official document and following online threads, nothing works for my project.
current... | https://stackoverflow.com/questions/79675200/stream-apache-airflow-3-0-2-logs-to-azure-blob | python, azure, logging, airflow, azure-blob-storage | 1,750,602,571 |
se_70687650 | stackoverflow | DATA_ENGINEERING | Invoke-WebRequest : A parameter cannot be found that matches parameter name 'LfO' | Invoke-WebRequest : A parameter cannot be found that matches parameter name 'LfO'
I'm trying to install Airflow with docker on my desktop.
When I run curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.2.3/docker-compose.yaml' like the internet says, I get this:
Invoke-WebRequest : A parameter cannot b... | https://stackoverflow.com/questions/70687650/invoke-webrequest-a-parameter-cannot-be-found-that-matches-parameter-name-lfo | python, airflow | 1,642,017,311 |
se_47396963 | stackoverflow | DATA_ENGINEERING | Passing parameters to Airflow's jobs through UI | Passing parameters to Airflow's jobs through UI
Is it possible to pass parameters to Airflow's jobs through UI?
AFAIK, 'params' argument in DAG is defined in python code, therefore it can't be changed at runtime. | https://stackoverflow.com/questions/47396963/passing-parameters-to-airflows-jobs-through-ui | airflow, orchestration | 1,511,196,260 |
se_60556380 | stackoverflow | DATA_ENGINEERING | Airflow: Trigger DAG via UI with Parameters/Config | Airflow: Trigger DAG via UI with Parameters/Config
I see that one can trigger_dag with parameters/config key-value pairs using the airflow command line:
For Apache Airflow, How can I pass the parameters when manually trigger DAG via CLI?
In my case, I would like to centralize all operations for airflow via the airfl... | https://stackoverflow.com/questions/60556380/airflow-trigger-dag-via-ui-with-parameters-config | airflow, airflow-scheduler | 1,583,458,337 |
se_40651783 | stackoverflow | DATA_ENGINEERING | Airflow: how to delete a DAG? | Airflow: how to delete a DAG?
I have started the Airflow webserver and scheduled some dags. I can see the dags on web GUI.
How can I delete a particular DAG from being run and shown in web GUI? Is there an Airflow CLI command to do that?
I looked around but could not find an answer for a simple way of deleting a DAG... | https://stackoverflow.com/questions/40651783/airflow-how-to-delete-a-dag | airflow | 1,479,376,765 |
se_72046166 | stackoverflow | DATA_ENGINEERING | How to override the argument of a particular task in airflow DAG | How to override the argument of a particular task in airflow DAG
I have a DAG which contains two tasks. The Dag has been created like this:
default_args = {
'catchup': False,
'depends_on_past': False,
'start_date': datetime(2022, 1, 30),
'retries': '2',
'retry_delay': timedelta(minutes=3),
'que... | https://stackoverflow.com/questions/72046166/how-to-override-the-argument-of-a-particular-task-in-airflow-dag | airflow | 1,651,158,606 |
se_79336477 | stackoverflow | DATA_ENGINEERING | Mount the directory from gcs cloud bucket dynamically in the DAG by fetching the value from the DB | Mount the directory from gcs cloud bucket dynamically in the DAG by fetching the value from the DB
I have a DAG which will generate the file from the given source file.
Task A >> Task B (dynamic task)
Here Task A is the task where it will get the source file name and destination file name from the GCS bucket.
The task... | https://stackoverflow.com/questions/79336477/mount-the-directory-from-gcs-cloud-bucket-dynamically-in-the-dag-by-fetching-the | python-3.x, kubernetes, google-cloud-storage, airflow, google-kubernetes-engine | 1,736,263,161 |
se_73038089 | stackoverflow | DATA_ENGINEERING | How do I import Airflow operators for version 2.2.5? | How do I import Airflow operators for version 2.2.5?
I have just upgraded my Airflow to 2.2.5 and I can't use the EmptyOperator. It should be simple from airflow.operators.empty import EmptyOperatorbut I get the error ModuleNotFoundError: No module named 'airflow.operators.empty'. I also tried:
from airflow.operators ... | https://stackoverflow.com/questions/73038089/how-do-i-import-airflow-operators-for-version-2-2-5 | airflow, google-cloud-composer | 1,658,238,173 |
se_79675434 | stackoverflow | DATA_ENGINEERING | issues deploying airflow by helm chart | issues deploying airflow by helm chart
I am getting the following error while installing airflow through helm chart:
Error: parse error at (airflow/templates/rbac/pod-launcher-rolebinding.yaml:66): function "break" not defined | https://stackoverflow.com/questions/79675434/issues-deploying-airflow-by-helm-chart | airflow | 1,750,624,304 |
se_79697283 | stackoverflow | DATA_ENGINEERING | Airflow 3.0.2 + Helm + Keycloak SSO: User role changes from "Admin" to "Viewer" after login | Airflow 3.0.2 + Helm + Keycloak SSO: User role changes from "Admin" to "Viewer" after login
We are using Apache Airflow 3.0.2 with the official Helm chart version 1.17.0, deployed on Kubernetes via Terraform. We're integrating SSO using Keycloak.
Problem
After successful SSO login, users with the "... | https://stackoverflow.com/questions/79697283/airflow-3-0-2-helm-keycloak-sso-user-role-changes-from-admin-to-viewer | oauth-2.0, airflow, keycloak, single-sign-on, flask-appbuilder | 1,752,160,974 |
se_79689682 | stackoverflow | DATA_ENGINEERING | Airflow Executor CeleryExecutor(parallelism=48) reported that the task instance [queued]> finished with state failed | Airflow Executor CeleryExecutor(parallelism=48) reported that the task instance [queued]> finished with state failed
I'm looking for help/advise on understanding error we are facing in our airflow environment couple of times a day.
We are hosting airflow in azure kubernetes , for backend database we were using post... | https://stackoverflow.com/questions/79689682/airflow-executor-celeryexecutorparallelism-48-reported-that-the-task-instance | airflow | 1,751,605,175 |
se_79025790 | stackoverflow | DATA_ENGINEERING | Apache Airflow for IoT device simulators | Apache Airflow for IoT device simulators
I want to use Apache Airflow for IoT device simulator written in python. Let's say I want to run that script for 25000 devices and the 25000 invocations should run concurrently. Is apache airflow is right tool to be used or there are other opensource tools which will be good fi... | https://stackoverflow.com/questions/79025790/apache-airflow-for-iot-device-simulators | airflow | 1,727,332,080 |
se_79693982 | stackoverflow | DATA_ENGINEERING | Airflow ExternalTaskSensor waits forever even though the task has finished | Airflow ExternalTaskSensor waits forever even though the task has finished
Airflow ExternalTaskSensor waits forever after TriggerDagRunOperator
I just started learning Airflow and I have a problem with ExternalTaskSensor.
I have 2 DAGs:
A trigger_dag that waits for a file, then triggers jobs_dag.py.
The jobs_dag.py r... | https://stackoverflow.com/questions/79693982/airflow-externaltasksensor-waits-forever-even-though-the-task-has-finished | airflow, airflow-taskflow | 1,751,966,301 |
se_79692022 | stackoverflow | DATA_ENGINEERING | Apache Airflow DAG not running | Apache Airflow DAG not running
I have installed the Airflow Docker environment as described in this guide (3.0.2)and I'm able to run a very simple DAG using the EmptyOperator.
However, when I create another DAG using, for example, the BashOperator, I get the following error:
[2025-07-06, 20:51:22] ERROR - DAG not foun... | https://stackoverflow.com/questions/79692022/apache-airflow-dag-not-running | python, airflow | 1,751,828,415 |
se_79693538 | stackoverflow | DATA_ENGINEERING | airflow dag runs twice a day, 2nd one queues up five seconds after first run... dangerous behaviour | airflow dag runs twice a day, 2nd one queues up five seconds after first run... dangerous behaviour
I am at my wits end with airflow running twice per day. it seems to decide to run a second dag run 5 seconds after the first. the first dag takes 4 hours or so and then it starts the 2nd one.
I have no idea what I am do... | https://stackoverflow.com/questions/79693538/airflow-dag-runs-twice-a-day-2nd-one-queues-up-five-seconds-after-first-run | airflow, runtime-error, config, directed-acyclic-graphs, orchestration | 1,751,934,050 |
se_69338426 | stackoverflow | DATA_ENGINEERING | How to use a private image from AWS ECR with Airflow's DockerOperator? | How to use a private image from AWS ECR with Airflow's DockerOperator?
I created a custom package with a CLI (built with Click). This package can do two things: run preprocessing and run the machine learning model.
I created a Docker image of this customer package and pushed it to a private registry on AWS (ECR).
... | https://stackoverflow.com/questions/69338426/how-to-use-a-private-image-from-aws-ecr-with-airflows-dockeroperator | python, amazon-web-services, docker, airflow, amazon-ecr | 1,632,685,768 |
se_79688390 | stackoverflow | DATA_ENGINEERING | In Airflow getting NotRegistered error on simple Celery task despite [celery] imports configuration | In Airflow getting NotRegistered error on simple Celery task despite [celery] imports configuration
I'm encountering a persistent NotRegistered error in my Airflow setup and have exhausted the standard debugging steps. Even a minimal test case fails, suggesting a fundamental issue with how my Celery worker is being co... | https://stackoverflow.com/questions/79688390/in-airflow-getting-notregistered-error-on-simple-celery-task-despite-celery-im | python, airflow, celery | 1,751,524,626 |
se_76514249 | stackoverflow | DATA_ENGINEERING | How to delete file on SFTP? | How to delete file on SFTP?
Is there any way to delete specific file on SFTP server using Apache Airflow Operator.
I checked SFTPOperator but it support only put/get operations. If not how I can create my own custom operator and other option will be FTPHook.
delete_old_span_to_ftp = SFTPOperator(
task_id = "delete... | https://stackoverflow.com/questions/76514249/how-to-delete-file-on-sftp | airflow, sftp, operator-keyword | 1,687,260,558 |
se_79236839 | stackoverflow | DATA_ENGINEERING | Is it possible to wrap @task.kubernetes so it assigns a pod name based on the decorated function name? | Is it possible to wrap @task.kubernetes so it assigns a pod name based on the decorated function name?
I tried creating a decorator that would automatically assign a pod name based on the wrapped function, something like:
def default_kubernetes_task(
**task_kwargs: Any,
) -> Callable[[Callable[..., Any]], Callable... | https://stackoverflow.com/questions/79236839/is-it-possible-to-wrap-task-kubernetes-so-it-assigns-a-pod-name-based-on-the-de | airflow, airflow-taskflow, kubernetespodoperator | 1,732,878,034 |
se_65583550 | stackoverflow | DATA_ENGINEERING | airflow operator import doesn't seem to work | airflow operator import doesn't seem to work
I am new to airflow and need some direction on this one...
I'm creating my first dag that uses a subdag and importing the subdag operator
`from airflow.operators.subdag import SubDagOperator`
however I keep getting the flowing error
"Broken DAG: [/usr/local/airflow/dag... | https://stackoverflow.com/questions/65583550/airflow-operator-import-doesnt-seem-to-work | airflow | 1,609,867,051 |
se_74565320 | stackoverflow | DATA_ENGINEERING | What is the proper way to set external task sensor in Airflow with different scheduled interval? | What is the proper way to set external task sensor in Airflow with different scheduled interval?
I just joined a new company and I'm trying to learn Airflow as I used it. So far I've got the basics of most things down except External Task Sensors.
I have two DAGs, DAG A that has a schedule interval of "0 6 * * *" and ... | https://stackoverflow.com/questions/74565320/what-is-the-proper-way-to-set-external-task-sensor-in-airflow-with-different-sch | airflow | 1,669,317,014 |
se_77198205 | stackoverflow | DATA_ENGINEERING | Airflow Connection: How to create an airflow connection to Azure Blob Storage using Service Principal? | Airflow Connection: How to create an airflow connection to Azure Blob Storage using Service Principal?
I followed this doc to attempt to create an Azure Blob Storage connection. I believe for my case, I am looking to connect via token credentials.
However I get an error when trying to save with no error message. I'm... | https://stackoverflow.com/questions/77198205/airflow-connection-how-to-create-an-airflow-connection-to-azure-blob-storage-us | azure, airflow, azure-blob-storage | 1,695,934,284 |
se_79608619 | stackoverflow | DATA_ENGINEERING | Airflow Submit PySpark Job to Remote Spark | Airflow Submit PySpark Job to Remote Spark
I have airflow in machine A and Spark (master and several worker) in machine B. The spark is in standalone mode (i.e I don't use kubernetes or YARN). Both spark and airflow are deployed using docker. I want airflow to submit spark job to machine B with the master acting as a ... | https://stackoverflow.com/questions/79608619/airflow-submit-pyspark-job-to-remote-spark | docker, apache-spark, pyspark, airflow, minio | 1,746,531,255 |
se_77865400 | stackoverflow | DATA_ENGINEERING | Does Airflow ConsumeFromTopicOperator only work one way? | Does Airflow ConsumeFromTopicOperator only work one way?
I am using airflow to consume topics from kafka using ConsumeFromTopicOperator. This is all working well: Airflow connects to kafka and my producer function can read all the topics and print successfully process and print to the screen. From here I can see that ... | https://stackoverflow.com/questions/77865400/does-airflow-consumefromtopicoperator-only-work-one-way | python, apache-kafka, airflow | 1,706,004,067 |
se_79467300 | stackoverflow | DATA_ENGINEERING | Airflow - GitSync - No DAGs available | Airflow - GitSync - No DAGs available
According to the official documentation, this should be enough:
dags:
mountPath: ~
persistence:
enabled: false
gitSync:
enabled: true
repo: https://github.com/organisation/my-project.git
branch: test
rev: HEAD
ref: test
depth: 1
maxFailures: 0... | https://stackoverflow.com/questions/79467300/airflow-gitsync-no-dags-available | airflow, kubernetes-helm | 1,740,501,941 |
se_76108471 | stackoverflow | DATA_ENGINEERING | Can you pass Airflow templated variables with their actual type into Operators? | Can you pass Airflow templated variables with their actual type into Operators?
I know that you can pass templated variables as string into operators, but I'd like to pass them around as their actual type.
For example, if I have (trivial function just to illustrate my point)
def get_day(datetime_object):
return da... | https://stackoverflow.com/questions/76108471/can-you-pass-airflow-templated-variables-with-their-actual-type-into-operators | python, airflow, jinja2 | 1,682,496,297 |
se_67387934 | stackoverflow | DATA_ENGINEERING | No module named ____ error in AWS MWAA even with requirements.txt | No module named ____ error in AWS MWAA even with requirements.txt
I've uploaded my requirementst.txt to a dag and referenced it when creating my Airflow Environment. Here is what my requirements.txt looks like:
apache-airflow==1.10.12
oauth2client==4.1.3
google-api-python-client==2.2.0
Flask-AppBuilder==2.3.3
boto3==1... | https://stackoverflow.com/questions/67387934/no-module-named-error-in-aws-mwaa-even-with-requirements-txt | amazon-web-services, airflow, mwaa | 1,620,142,945 |
se_79545861 | stackoverflow | DATA_ENGINEERING | CloudRunExecuteJobOperator fail to trigger job run on GCP | CloudRunExecuteJobOperator fail to trigger job run on GCP
I have a Cloud Composer environment that is mainly made of DAGs that have to trigger jobs on GCP using the CloudRunExecuteJobOperator.
Without any changes to my instance, the tasks begin to stay stuck in the "running" state until they timeout and fail.
When I l... | https://stackoverflow.com/questions/79545861/cloudrunexecutejoboperator-fail-to-trigger-job-run-on-gcp | airflow, google-cloud-composer | 1,743,411,643 |
se_79659430 | stackoverflow | DATA_ENGINEERING | Problem with tasks and tasks groups order on the GRID VIEW on airflow 3.0.1 | Problem with tasks and tasks groups order on the GRID VIEW on airflow 3.0.1
I have tasks executed by Airflow on the correct order.
It works on Airflow with the versions 2.11.0 and 3.0.1.
My problem is the order of the tasks and tasks groups on the GRID VIEW on 3.0.1.
I tried to change the grid_view_sorting_order value... | https://stackoverflow.com/questions/79659430/problem-with-tasks-and-tasks-groups-order-on-the-grid-view-on-airflow-3-0-1 | airflow | 1,749,497,495 |
se_74434516 | stackoverflow | DATA_ENGINEERING | Is it possible to get the error of a previous try of a task in Airflow? | Is it possible to get the error of a previous try of a task in Airflow?
I have a task that is configured to retry 3 times. I would like to perform some logic if the exception of the original failure is of a certain type. Is it possible from run 2 of the task for example, to extract the exception from the first attempt... | https://stackoverflow.com/questions/74434516/is-it-possible-to-get-the-error-of-a-previous-try-of-a-task-in-airflow | airflow | 1,668,441,666 |
se_79630494 | stackoverflow | DATA_ENGINEERING | AIRFLOW 3.0 - Integrating Airflow 3.0.1 WebServer with LDAP/Active Directory | AIRFLOW 3.0 - Integrating Airflow 3.0.1 WebServer with LDAP/Active Directory
I'm working on integrating the new Airflow 3.0.1 WebServer with LDAP/Active Directory.
In previous versions, I was able to configure this integration using the webserver.py file.
However, I noticed that the latest release of Airflow no longer... | https://stackoverflow.com/questions/79630494/airflow-3-0-integrating-airflow-3-0-1-webserver-with-ldap-active-directory | active-directory, ldap, airflow, airflow-webserver | 1,747,746,006 |
se_79608838 | stackoverflow | DATA_ENGINEERING | GCP Composer Airflow - Total parse time keeps increasing | GCP Composer Airflow - Total parse time keeps increasing
I have a prod environment of Composer 3 Airflow 2.9.3-build.12, everything works fine except for the update of Dags.
When creating a new Dag, upload it in the Dag's folder it takes just a few seconds to see it in the Airflow UI.
Whenever I update an existing Dag... | https://stackoverflow.com/questions/79608838/gcp-composer-airflow-total-parse-time-keeps-increasing | google-cloud-platform, airflow, google-cloud-composer | 1,746,538,870 |
se_76579144 | stackoverflow | DATA_ENGINEERING | How can i get all dags details from airflow rest api | How can i get all dags details from airflow rest api
i have more dags (say 150dags) in my airflow account.
My airflow version = 2.4.0
im using url and query parameter
http://localhost:8081/api/v1/dags?limit=1000&offset=0
But my response consists only 100 records(dags).
i think query parameters are not working here.
Ho... | https://stackoverflow.com/questions/76579144/how-can-i-get-all-dags-details-from-airflow-rest-api | airflow, airflow-2.x, airflow-webserver, airflow-api, airflow-taskflow | 1,688,025,871 |
se_79598017 | stackoverflow | DATA_ENGINEERING | Unable to trigger dynamically created pipelines in airflow DAG | Unable to trigger dynamically created pipelines in airflow DAG
I have a DAG file to load data from mongodb to bigquery. I have tested my apache beam pipeline individually but when i am trying to trigger it dynamically to do parallel processing of all collections in mongodb by creating BeamRunPythonPipelineOperator us... | https://stackoverflow.com/questions/79598017/unable-to-trigger-dynamically-created-pipelines-in-airflow-dag | python, mongodb, airflow, google-cloud-dataflow, apache-beam | 1,745,918,512 |
se_78223098 | stackoverflow | DATA_ENGINEERING | Add log rotation support to airflow logs folder | Add log rotation support to airflow logs folder
I want to automate deleting all the log files(both scheduler and dag logs) that are older than 7 days.
The logs folder is mounted volume from the container -
volumes:
- ${AIRFLOW_PROJ_DIR:-.}/dags:/opt/airflow/dags
- ${AIRFLOW_PROJ_DIR:-.}/logs:/opt/airflow/log... | https://stackoverflow.com/questions/78223098/add-log-rotation-support-to-airflow-logs-folder | docker-compose, airflow, log-rotation | 1,711,429,946 |
se_72057423 | stackoverflow | DATA_ENGINEERING | configuring Airflow ssh connection in google cloud composer | configuring Airflow ssh connection in google cloud composer
I'm trying to configure a SSH connection from Airflow UI on google cloud composer environment to an on premise posgresql server
Where I should store my private key ?
How to pass to SSH connection config the private key location ? | https://stackoverflow.com/questions/72057423/configuring-airflow-ssh-connection-in-google-cloud-composer | postgresql, ssh, airflow, google-cloud-composer | 1,651,232,560 |
se_79643133 | stackoverflow | DATA_ENGINEERING | Flask_session error when building containerized version of Airflow using podman | Flask_session error when building containerized version of Airflow using podman
I'm trying to build a container to run my airflow using only dockerfile (not docker-compose). Here is my dockerfile. I'm running this on a server linux machine I succesfully managed to build the image, but when I run, it would immediately ... | https://stackoverflow.com/questions/79643133/flask-session-error-when-building-containerized-version-of-airflow-using-podman | python, docker, airflow | 1,748,477,051 |
se_56774624 | stackoverflow | DATA_ENGINEERING | Retry Airflow task instance only on certain Exception | Retry Airflow task instance only on certain Exception
What's the best way to retry an Airflow operator only for certain failures/exceptions?
For example, let's assume that I have an Airflow task which relies on the availability of an external service. If this service becomes unavailable during the task execution, I w... | https://stackoverflow.com/questions/56774624/retry-airflow-task-instance-only-on-certain-exception | python, airflow, google-cloud-composer | 1,561,557,573 |
se_79647053 | stackoverflow | DATA_ENGINEERING | How to set up username/password in airflow3 local set up | How to set up username/password in airflow3 local set up
I am deploying airflow 3 in docker. The UI is up and all the containers are running. I am unable to login using admin/admin. Here is the yaml file.
I am not able to see the ab_role or ab_user tables. is there any thing I am missing?
services:
postgres:
ima... | https://stackoverflow.com/questions/79647053/how-to-set-up-username-password-in-airflow3-local-set-up | airflow | 1,748,732,888 |
se_72916504 | stackoverflow | DATA_ENGINEERING | Airflow - Notification on failure of the whole dag | Airflow - Notification on failure of the whole dag
I'm trying to implement a way to get notified when my dag fails.
I tried to use the email_on_failure and a webhook method ( https://code.mendhak.com/Airflow-MS-Teams-Operator/ ).
But for both of them, I got a notification for every task that failed.
Is there a way to ... | https://stackoverflow.com/questions/72916504/airflow-notification-on-failure-of-the-whole-dag | airflow, airflow-scheduler | 1,657,310,835 |
se_55850929 | stackoverflow | DATA_ENGINEERING | Does Airflow support jar file? | Does Airflow support jar file?
I am a newbie to Airflow. I have some .jar jobs generated with Talend Open Studio for Big Data, and I want to schedule and manage those with Airflow. My question is, does Airflow support .jar file or generated by TOS as DAG? And if it does, how? Or is there any alternative to run .jar o... | https://stackoverflow.com/questions/55850929/does-airflow-support-jar-file | jar, airflow, talend | 1,556,200,329 |
se_54638295 | stackoverflow | DATA_ENGINEERING | I can't xcom_push an arguments through BashOperator | I can't xcom_push an arguments through BashOperator
I am new to the Airflow's xcom feature. i tried it out with PythonOperator and it was working fine(i.e., i can push and pull the value out of the context), but when i tried it out on BashOperator, it didn't work. However i can pull only the final stdout statement... | https://stackoverflow.com/questions/54638295/i-cant-xcom-push-an-arguments-through-bashoperator | airflow | 1,549,915,582 |
se_79643386 | stackoverflow | DATA_ENGINEERING | ETL script integration with apache airflow problem | ETL script integration with apache airflow problem
I am facing a problem with scheduling airflow with my etl script that loads data in mysql db here i am using airflow 3.1 and i am facing problem with connection.
Log message source details: sources=["Could not read served logs: Invalid URL 'http://:8793/log/dag_id=etl... | https://stackoverflow.com/questions/79643386/etl-script-integration-with-apache-airflow-problem | airflow, etl | 1,748,499,287 |
se_79643386 | stackoverflow | DATA_ENGINEERING | ETL script integration with apache airflow problem | ETL script integration with apache airflow problem
I am facing a problem with scheduling airflow with my etl script that loads data in mysql db here i am using airflow 3.1 and i am facing problem with connection.
Log message source details: sources=["Could not read served logs: Invalid URL 'http://:8793/log/dag_id=etl... | https://stackoverflow.com/questions/79643386/etl-script-integration-with-apache-airflow-problem | airflow, etl | 1,748,499,287 |
se_73983716 | stackoverflow | DATA_ENGINEERING | Dags triggered by TagDriggenRunOperator are only queued but not running | Dags triggered by TagDriggenRunOperator are only queued but not running
I have a parent dag that is used to trigger another. When I trigger the child dag, the child dags is only queued but never running.
This is my parent_dag.py file
from airflow import DAG
from datetime import datetime, timedelta
from airflow.decora... | https://stackoverflow.com/questions/73983716/dags-triggered-by-tagdriggenrunoperator-are-only-queued-but-not-running | airflow, airflow-2.x | 1,665,127,344 |
se_73640412 | stackoverflow | DATA_ENGINEERING | How to Transfer a BigQuery view to a Google Cloud Storage bucket as a csv file | How to Transfer a BigQuery view to a Google Cloud Storage bucket as a csv file
I need to export the content of a BigQuery view to the csv file in GCP, with Airflow DAG. To export the content of the BQ TABLE, I can use BigQueryToCloudStorageOperator. But in my case I need to use an existing view, and BigQueryToCloudSto... | https://stackoverflow.com/questions/73640412/how-to-transfer-a-bigquery-view-to-a-google-cloud-storage-bucket-as-a-csv-file | google-cloud-platform, airflow, directed-acyclic-graphs | 1,662,577,676 |
se_75721433 | stackoverflow | DATA_ENGINEERING | Using Airflow, How to handle asynchronous API calls with Airflow Tasks? | Using Airflow, How to handle asynchronous API calls with Airflow Tasks?
I'm quite new to Airflow, I need to make asynchronous POST API calls to start the execution of the external service. And Need to make GET API calls to check the status of the execution and have to make that call until the execution gets completed.... | https://stackoverflow.com/questions/75721433/using-airflow-how-to-handle-asynchronous-api-calls-with-airflow-tasks | airflow, airflow-2.x, airflow-webserver, airflow-api, airflow-taskflow | 1,678,707,865 |
se_71045539 | stackoverflow | DATA_ENGINEERING | How to know what caused a simple DAG in Apache Airflow to fail? | How to know what caused a simple DAG in Apache Airflow to fail?
I am new to Apache Airflow.
I wanted to create a simple DAG with a single Task that launches a python script in a virtual environment:
from airflow import DAG
from datetime import datetime, timedelta
from airflow.operators.bash import BashOperator
with DA... | https://stackoverflow.com/questions/71045539/how-to-know-what-caused-a-simple-dag-in-apache-airflow-to-fail | python, airflow, airflow-2.x | 1,644,392,077 |
se_75121016 | stackoverflow | DATA_ENGINEERING | airflow "params" not passed to @task_group() function | airflow "params" not passed to @task_group() function
Is there a way to get the "params" to a task group, as they are with a pain task?
@dag(dag_id='start-matrix',
params={"a" : 1, "b" : 2},
schedule_interval=None,
start_date=datetime(2021, 4, 5, 15, 0))
def startMatrix():
@task()
def... | https://stackoverflow.com/questions/75121016/airflow-params-not-passed-to-task-group-function | airflow | 1,673,727,949 |
se_79626053 | stackoverflow | DATA_ENGINEERING | How to Make Snowflake PUT via SQLExecuteQueryOperator Use Local File System Instead of S3 Accelerate? | How to Make Snowflake PUT via SQLExecuteQueryOperator Use Local File System Instead of S3 Accelerate?
I am using the SQLExecuteQueryOperator in Apache Airflow to execute a PUT command for uploading a file to Snowflake Internal Stage.
The command works fine when executing manually, when it integrating SQLExecuteQueryOp... | https://stackoverflow.com/questions/79626053/how-to-make-snowflake-put-via-sqlexecutequeryoperator-use-local-file-system-inst | snowflake-cloud-data-platform, airflow | 1,747,438,420 |
se_79391507 | stackoverflow | DATA_ENGINEERING | Airflow: Passing variable in DAG | Airflow: Passing variable in DAG
Tl;dr:
How to access parameters in dag?
I'm referring to input_number in params:
with DAG(dag_id=v_dag_id,
description=f'Ejecución SQL {v_project_name}',
tags=['caba', '16860', 'kde063'],
default_args=v_default_args,
schedule_interval=None,
max_active_tasks=12,... | https://stackoverflow.com/questions/79391507/airflow-passing-variable-in-dag | airflow, scheduled-tasks | 1,737,995,773 |
se_79622675 | stackoverflow | DATA_ENGINEERING | Dependencies in airflow dags wrong when using decorator | Dependencies in airflow dags wrong when using decorator
I have a dag here, using decorator
from airflow.decorators import task, dag,task_group
from datetime import datetime , timedelta
from airflow.operators.dummy import DummyOperator
default_args = {
"owner" : "khanh",
"retries" : 1,
"retry_delay" : timed... | https://stackoverflow.com/questions/79622675/dependencies-in-airflow-dags-wrong-when-using-decorator | airflow | 1,747,286,915 |
se_47998552 | stackoverflow | DATA_ENGINEERING | Apache Airflow DAG cannot import local module | Apache Airflow DAG cannot import local module
I do not seem to understand how to import modules into an apache airflow DAG definition file. I would want to do this to be able to create a library which makes declaring tasks with similar settings less verbose, for instance.
Here is the simplest example I can think of t... | https://stackoverflow.com/questions/47998552/apache-airflow-dag-cannot-import-local-module | python, airflow | 1,514,408,135 |
se_53642956 | stackoverflow | DATA_ENGINEERING | How can I programmatically access the cron schedules for my Airflow DAGs? | How can I programmatically access the cron schedules for my Airflow DAGs?
I am trying to build a custom UI built around the executions of airflow tasks. One piece of information I need is the cron schedule of each DAG.
I cannot find this in any of the tables used by the Airflow scheduler. Am I missing something obvi... | https://stackoverflow.com/questions/53642956/how-can-i-programmatically-access-the-cron-schedules-for-my-airflow-dags | airflow, airflow-scheduler | 1,544,056,861 |
se_79548968 | stackoverflow | DATA_ENGINEERING | In Airflow 2.10 can I use dynamic task mapping with BranchPythonOperator? | In Airflow 2.10 can I use dynamic task mapping with BranchPythonOperator?
Below is a minimal implementation of a branch operator using the taskflow api.
The dag will execute either odd_task or even_task based on the string given by branch_on_condition. odd_task or even_task will also use the return_int value on which ... | https://stackoverflow.com/questions/79548968/in-airflow-2-10-can-i-use-dynamic-task-mapping-with-branchpythonoperator | python, airflow, directed-acyclic-graphs, airflow-2.x, airflow-taskflow | 1,743,534,384 |
se_72382274 | stackoverflow | DATA_ENGINEERING | How to import function from other module in airflow docker | How to import function from other module in airflow docker
Basicly I'm trying to call a function from another files in airflow.
I want to run a python function from a different files using airflow-docker
I am using this image : https://airflow.apache.org/docs/apache-airflow/2.3.1/docker-compose.yaml to run an airflow
... | https://stackoverflow.com/questions/72382274/how-to-import-function-from-other-module-in-airflow-docker | docker, module, yaml, airflow, volumes | 1,653,501,548 |
se_79617182 | stackoverflow | DATA_ENGINEERING | How to keep a Docker container alive while running cronjobs via Airflow and preserving logs in Docker Swarm? | How to keep a Docker container alive while running cronjobs via Airflow and preserving logs in Docker Swarm?
I am using Docker Swarm to deploy my application, and I want to keep my Docker container running. I use the following tail -f /dev/null command to keep the container alive, but I also want to run cronjobs insid... | https://stackoverflow.com/questions/79617182/how-to-keep-a-docker-container-alive-while-running-cronjobs-via-airflow-and-pres | docker, airflow, docker-swarm | 1,747,023,873 |
se_75768106 | stackoverflow | DATA_ENGINEERING | How to best mix-and-match returning/non-returning tasks on Airflow Taskflow API? | How to best mix-and-match returning/non-returning tasks on Airflow Taskflow API?
Note: All examples below seek a one-line serial execution.
Dependencies on Taskflow API can be easily made serial if they don't return data that is used afterwards:
t1() >> t2()
If the task T1 returning a value and task T2 using it, you ... | https://stackoverflow.com/questions/75768106/how-to-best-mix-and-match-returning-non-returning-tasks-on-airflow-taskflow-api | python, airflow, airflow-2.x, airflow-taskflow | 1,679,059,419 |
se_79615781 | stackoverflow | DATA_ENGINEERING | AirFlow pyspark Docker compose webserver ERROR Forbidden | AirFlow pyspark Docker compose webserver ERROR Forbidden
The server doesn't seem to run properly although the logs say it is working fine. I am trying to build an airflow image that has pys park installed but unable to do so - can anyone help?
docker-compose.yml:
# docker-compose.yml
x-airflow-common:
&airflow-comm... | https://stackoverflow.com/questions/79615781/airflow-pyspark-docker-compose-webserver-error-forbidden | docker, pyspark, airflow | 1,746,900,379 |
se_79614558 | stackoverflow | DATA_ENGINEERING | dynamic wildcard is not working with load_table_from_uri | dynamic wildcard is not working with load_table_from_uri
I was trying to load multiple gcs files to bigquery via Airflow using api load_table_from_uri
uri="gs://b5a34db6ab213379-eu-pm-test-uat-data-ingest-temp/test_pm_cm_data/"+str(run_id).strip()+"/*.csv"
Above is not working when I am creating it dynamically. If I ... | https://stackoverflow.com/questions/79614558/dynamic-wildcard-is-not-working-with-load-table-from-uri | google-bigquery, google-cloud-storage, airflow, wildcard | 1,746,809,383 |
se_79610589 | stackoverflow | DATA_ENGINEERING | How to connect Airflow composer with mysql database | How to connect Airflow composer with mysql database
i want to connect my composer with my mySQL database. I have create a environment in GCP composer. In Airflow ui i have add a new connection like this admin -> connection -> add new connection etc. There i add my connection id name, theConnection Type= mysql, host, s... | https://stackoverflow.com/questions/79610589/how-to-connect-airflow-composer-with-mysql-database | mysql, airflow, google-cloud-composer | 1,746,622,655 |
se_59048517 | stackoverflow | DATA_ENGINEERING | ERROR - SSH operator error: timed out in Airflow while connecting with ec2 instance | ERROR - SSH operator error: timed out in Airflow while connecting with ec2 instance
I am getting a timeout error while trying to connect with ec2 instance.
I can connect to the machine through ssh command:
ssh -i keypair.pem myuser@ec2IPaddress
My connection file has the following things:
conn Id: ssh_custom... | https://stackoverflow.com/questions/59048517/error-ssh-operator-error-timed-out-in-airflow-while-connecting-with-ec2-insta | python, airflow | 1,574,763,233 |
se_68095962 | stackoverflow | DATA_ENGINEERING | PyTorch error when running PyTorch image on Kubernetes | PyTorch error when running PyTorch image on Kubernetes
I have a Docker image that uses PyTorch to perform object detection.
The container runs fine on local and on Google Colab, however when running on Kubernetes (through Airflow) it raises the following error:
[2021-06-23 07:13:17,592] {pod_launcher.py:148} INFO - Tr... | https://stackoverflow.com/questions/68095962/pytorch-error-when-running-pytorch-image-on-kubernetes | python, pytorch, airflow, torchvision | 1,624,435,615 |
se_79574319 | stackoverflow | DATA_ENGINEERING | Error 'Failed to import plugin opt/airflow/plugins/operatos/. . . ' when running docker-compose up for images | Error 'Failed to import plugin opt/airflow/plugins/operatos/. . . ' when running docker-compose up for images
In my project, I build a docker image on my local machine, then pull the image to the production machine.
On my local machine, I can still run the image using the docker-compose up command to create a ... | https://stackoverflow.com/questions/79574319/error-failed-to-import-plugin-opt-airflow-plugins-operatos-when-running | python, docker, docker-compose, plugins, airflow | 1,744,687,531 |
se_79601614 | stackoverflow | DATA_ENGINEERING | Airflow 3.0.0 Docker Compose UI endlessly refreshing on external IP:port, works on localhost:8080 | Airflow 3.0.0 Docker Compose UI endlessly refreshing on external IP:port, works on localhost:8080
I am setting up Apache Airflow 3.0.0 using the official Docker Compose file (https://airflow.apache.org/docs/apache-airflow/3.0.0/docker-compose.yaml) on a Linux server (Ubuntu 22.04).
I have successfully brought up all t... | https://stackoverflow.com/questions/79601614/airflow-3-0-0-docker-compose-ui-endlessly-refreshing-on-external-ipport-works | docker-compose, airflow, airflow-api | 1,746,090,248 |
se_79038668 | stackoverflow | DATA_ENGINEERING | How to create an airflow sensor using k8s pod in (similar to KubernetesPodOperator) | How to create an airflow sensor using k8s pod in (similar to KubernetesPodOperator)
I have recently started to use the KubernetesPodOperator that provides a lot of scale to airflow tasks (on 2.10) and has been working very well.
However, I would also like to kubernetes pods as sensor and there is no native sensor for ... | https://stackoverflow.com/questions/79038668/how-to-create-an-airflow-sensor-using-k8s-pod-in-similar-to-kubernetespodoperat | airflow, kubernetespodoperator | 1,727,687,663 |
se_75464894 | stackoverflow | DATA_ENGINEERING | No response from gunicorn master within 120 seconds after pointing to external postgres | No response from gunicorn master within 120 seconds after pointing to external postgres
I am deploying airflow latest release using Docker, everything works fine until I point the database to an external Postgres Database. As soon as the database is pointed to an external database the webserver container doesn't get u... | https://stackoverflow.com/questions/75464894/no-response-from-gunicorn-master-within-120-seconds-after-pointing-to-external-p | postgresql, docker, airflow, gunicorn, airflow-webserver | 1,676,491,264 |
se_72168472 | stackoverflow | DATA_ENGINEERING | How do I retrieve airflow url link to my latest task log in a DAG? | How do I retrieve airflow url link to my latest task log in a DAG?
In individual DAG task, how do I set up the url link with the help from python operator as I am intending to send an url link of the latest log directly to the user whenever errors occur so that they can access to the page directly skipping the step of... | https://stackoverflow.com/questions/72168472/how-do-i-retrieve-airflow-url-link-to-my-latest-task-log-in-a-dag | python, airflow | 1,652,081,927 |
se_57668584 | stackoverflow | DATA_ENGINEERING | Airflow scheduler does not appear to be running after execute a task | Airflow scheduler does not appear to be running after execute a task
When there is a task running, Airflow will pop a notice saying the scheduler does not appear to be running and it kept showing until the task finished:
The scheduler does not appear to be running. Last heartbeat was received 5 minutes ago.
The DAGs ... | https://stackoverflow.com/questions/57668584/airflow-scheduler-does-not-appear-to-be-running-after-execute-a-task | airflow | 1,566,886,369 |
se_79598229 | stackoverflow | DATA_ENGINEERING | Adding PEM file to Kubernetes Airflow | Adding PEM file to Kubernetes Airflow
I'm trying to add a PEM file to the config for the latest airflow HELM chart. I've added the certificate as a configMap, I have added the following code to the HELM chart for the webserver. It has created a folder with the same name as the PEM file but there isn't a file in the... | https://stackoverflow.com/questions/79598229/adding-pem-file-to-kubernetes-airflow | kubernetes, airflow, kubernetes-helm | 1,745,925,302 |
se_32378494 | stackoverflow | DATA_ENGINEERING | How to run Airflow on Windows | How to run Airflow on Windows
The usual instructions for running Airflow do not apply on a Windows environment:
# airflow needs a home, ~/airflow is the default,
# but you can lay foundation somewhere else if you prefer
# (optional)
export AIRFLOW_HOME=~/airflow
# install from pypi using pip
pip install airflow
# i... | https://stackoverflow.com/questions/32378494/how-to-run-airflow-on-windows | python, windows, flask, flask-admin, airflow | 1,441,290,649 |
se_79594354 | stackoverflow | DATA_ENGINEERING | Why does my airflow dag run twice when I dockerize it? | Why does my airflow dag run twice when I dockerize it?
I have dockerized by airflow dag that basically copies one csv file to gcp, then loads it to BigQuery and do simple transformation. When I run docker-compose run, my dag is executed twice. I am not able to understand due to which part of code is this happening. Wh... | https://stackoverflow.com/questions/79594354/why-does-my-airflow-dag-run-twice-when-i-dockerize-it | docker, airflow, airflow-webserver | 1,745,697,529 |
se_79594796 | stackoverflow | DATA_ENGINEERING | Edit Google Drive and Sheets Files (Airflow Google Provider): Insufficient credentials | Edit Google Drive and Sheets Files (Airflow Google Provider): Insufficient credentials
I am trying to modify a Google Sheets file and a CSV file in Google Drive via the Apache Airflow Google Provider:
df = pd.DataFrame(data)
csv_data = df.to_csv(index=True)
gcs_hook = GCSHook(gcp_conn_id=GOOGLE_CONNECTION)
gcs_hook.u... | https://stackoverflow.com/questions/79594796/edit-google-drive-and-sheets-files-airflow-google-provider-insufficient-crede | python, google-cloud-platform, google-drive-api, airflow, google-sheets-api | 1,745,738,824 |
se_79593938 | stackoverflow | DATA_ENGINEERING | While testing airflow task with pytest, I got an error | While testing airflow task with pytest, I got an error
While testing airflow with pytest, i got an Error.
# tests/conftest.py
import datetime
import pytest
from airflow.models import DAG
@pytest.fixture
def test_dag():
return DAG(
"test_dag",
default_args={
"owner": "airflow",
... | https://stackoverflow.com/questions/79593938/while-testing-airflow-task-with-pytest-i-got-an-error | python, airflow, pytest | 1,745,672,404 |
se_43944741 | stackoverflow | DATA_ENGINEERING | Debugging Broken DAGs | Debugging Broken DAGs
When the airflow webserver shows up errors like Broken DAG: [<path/to/dag>] <error>, how and where can we find the full stacktrace for these exceptions?
I tried these locations:
/var/log/airflow/webserver -- had no logs in the timeframe of execution, other logs were in binary and decoding with ... | https://stackoverflow.com/questions/43944741/debugging-broken-dags | airflow | 1,494,615,264 |
se_78247562 | stackoverflow | DATA_ENGINEERING | How to Resolve Workers Not Scaling with 100s of Queued Tasks in Google Cloud Composer? | How to Resolve Workers Not Scaling with 100s of Queued Tasks in Google Cloud Composer?
Context:
Using Google Cloud Composer to schedule and orchestrate some tasks.
There are around 20 active DAGs currently. It will grow over time (around 40-50).
Each DAG has 4 tasks. They are scheduled to run every hour.
Each task is... | https://stackoverflow.com/questions/78247562/how-to-resolve-workers-not-scaling-with-100s-of-queued-tasks-in-google-cloud-com | airflow, celery, dbt, google-cloud-composer | 1,711,794,206 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.