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_79017924 | stackoverflow | DATA_ENGINEERING | Role of airflow-triggerer container in Airflow docker-compose | Role of airflow-triggerer container in Airflow docker-compose
I'm trying to reduce the size of official Airflow docker-compose build. The question is about airflow-triggerer container. Seems like if I remove this container - nothing should change, because the scheduler triggers tasks. So, what is the role of airflow-t... | https://stackoverflow.com/questions/79017924/role-of-airflow-triggerer-container-in-airflow-docker-compose | airflow | 1,727,170,385 |
se_79015220 | stackoverflow | DATA_ENGINEERING | java.io.InvalidClassException: org.apache.spark.scheduler.Task; local class incompatible | java.io.InvalidClassException: org.apache.spark.scheduler.Task; local class incompatible
I'm building an ETL for fetching data from an API, transforming it and uploading it in mongodb.
I use pyspark to distribute this process and I'm trying to use airflow to automate it.
However, Iβve hit a roadblock. After setting up... | https://stackoverflow.com/questions/79015220/java-io-invalidclassexception-org-apache-spark-scheduler-task-local-class-inco | python, apache-spark, pyspark, docker-compose, airflow | 1,727,103,995 |
se_79015604 | stackoverflow | DATA_ENGINEERING | DBT commands are not working in AWS MWAA 2.9.2 | DBT commands are not working in AWS MWAA 2.9.2
Due to project security concerns, we were asked to upgrade the airflow version from 2.0.2 to 2.9.2 in AWS MWAA
However while upgrading to 2.9.2, we are facing severe concerns and not even a single DBT command is working, I've created a simple DAG as in below:
from airflow... | https://stackoverflow.com/questions/79015604/dbt-commands-are-not-working-in-aws-mwaa-2-9-2 | python-3.x, amazon-web-services, airflow, mwaa, aws-airflow-mwaa | 1,727,110,741 |
se_79004200 | stackoverflow | DATA_ENGINEERING | How Airflow SQLExecuteQueryOperator print messages in log | How Airflow SQLExecuteQueryOperator print messages in log
I am using Airflow SQLExecuteQueryOperator to execute a pl/pgsql script on postgres database. In my pl/pgsql script, there are RAISE NOTICE command to print out information. These messages aren't printed out in Airflow log. Is there a way to make Airflow log pr... | https://stackoverflow.com/questions/79004200/how-airflow-sqlexecutequeryoperator-print-messages-in-log | postgresql, airflow | 1,726,775,065 |
se_79012997 | stackoverflow | DATA_ENGINEERING | Forbidden: Authenticated IAM principal does not seem authorized to make API request. Verify 'Cloud SQL Admin API' and 'Cloud SQL Client' role | Forbidden: Authenticated IAM principal does not seem authorized to make API request. Verify 'Cloud SQL Admin API' and 'Cloud SQL Client' role
I have an Airflow cluster on Kubernetes, maintained by the SRE team. The cluster uses the service account sa_project_a, created from project_a, to authenticate a... | https://stackoverflow.com/questions/79012997/forbidden-authenticated-iam-principal-does-not-seem-authorized-to-make-api-requ | python, google-cloud-platform, airflow | 1,727,059,181 |
se_72608605 | stackoverflow | DATA_ENGINEERING | Airflow:permission error is coming when i am running with docker | Airflow:permission error is coming when i am running with docker
When i am running the docker up airflow-init command the following error is coming
airflow-init_1 | error: failed switching to "airflow": operation not permitted
airflow-init_1 |
airflow-init_1 | ERROR!!! Too old Airflow version !
airfl... | https://stackoverflow.com/questions/72608605/airflowpermission-error-is-coming-when-i-am-running-with-docker | airflow | 1,655,151,716 |
se_79013473 | stackoverflow | DATA_ENGINEERING | Unable to add a menu item to Airflow Composer | Unable to add a menu item to Airflow Composer
I have an Composer environment in Google Cloud. I want to add an item to the UI Menu with some links but it doesn't work.
Composer version: 2.8.4
Airflow version: 2.7.3
I created an Airflow Plugin analog to this one:
https://github.com/GoogleCloudPlatform/composer-airflow/... | https://stackoverflow.com/questions/79013473/unable-to-add-a-menu-item-to-airflow-composer | airflow, google-cloud-composer | 1,727,074,595 |
se_77365163 | stackoverflow | DATA_ENGINEERING | Airflow - import DAGs from multiple repositories | Airflow - import DAGs from multiple repositories
We have deployed airflow using the official helm chart on kubernetes, we are using KubernetesExecutor and git-sync.
I have no problems running DAGs from a single Gitlab repository, however how are you supposed to load DAGs from a different repository? I ran into this di... | https://stackoverflow.com/questions/77365163/airflow-import-dags-from-multiple-repositories | python, git, airflow | 1,698,307,406 |
se_78851076 | stackoverflow | DATA_ENGINEERING | Connecting Airflow to Snowflake account | Connecting Airflow to Snowflake account
I am having issue connecting the airflow to Snowflake. I think that the airflow admin GUI has changed a bit. But the main issue, is I am not sure how what is what when it comes account in the connection info.
Should I include the org name? I mean based on the image attached, how... | https://stackoverflow.com/questions/78851076/connecting-airflow-to-snowflake-account | snowflake-cloud-data-platform, airflow | 1,723,174,251 |
se_78933681 | stackoverflow | DATA_ENGINEERING | Airflow Task Group Execution Order | Airflow Task Group Execution Order
I am trying to understand when airflow tasks will be run. I do not understand why task_3a is running immediately when running this example.
How do I make this sample dag run in this order:
Task 1
Task 2 if instructed to run
Task 3
Task 3a and Task 3b (great if these run in parallel)... | https://stackoverflow.com/questions/78933681/airflow-task-group-execution-order | python, python-3.x, airflow | 1,725,050,261 |
se_75095916 | stackoverflow | DATA_ENGINEERING | Cannot run Airflow on Docker using MacOS - Even with more memory allocated | Cannot run Airflow on Docker using MacOS - Even with more memory allocated
I am trying to run Airflow on Docker (using a MacOS, Version 12.6.2, with 8 GB of Memory). I have downloaded the docker-compose.yaml file here (apache/airflow:2.4.2), and have set my .env file to this:
AIRFLOW_IMAGE_NAME=apache/airflow:2.4.2
AI... | https://stackoverflow.com/questions/75095916/cannot-run-airflow-on-docker-using-macos-even-with-more-memory-allocated | docker, airflow | 1,673,524,274 |
se_71601453 | stackoverflow | DATA_ENGINEERING | Apache airflow doens't display the DAG | Apache airflow doens't display the DAG
I'm facing some issues trying to set up a basic DAG file inside the Airflow (but also I have other two files).
I'm using the LocalExecutor through the Ubuntu and saved my files at "C:\Users\tdamasce\Documents\workspace" with the dag and log file inside it.
My script is
# step... | https://stackoverflow.com/questions/71601453/apache-airflow-doenst-display-the-dag | airflow | 1,648,120,381 |
se_78999574 | stackoverflow | DATA_ENGINEERING | Seeking Advice on Efficient Data Unpivoting in SQL Server with SSIS or Alternative Tools | Seeking Advice on Efficient Data Unpivoting in SQL Server with SSIS or Alternative Tools
I'm currently working with a SQL Server database and facing a challenge with transforming my data. The data structure requires me to unpivot numerous columns before moving it to a staging area.
I attempted to use SSIS for this tas... | https://stackoverflow.com/questions/78999574/seeking-advice-on-efficient-data-unpivoting-in-sql-server-with-ssis-or-alternati | sql-server, ssis, airflow, etl | 1,726,681,837 |
se_78998767 | stackoverflow | DATA_ENGINEERING | What is the exact syntax for .airflowignore? | What is the exact syntax for .airflowignore?
A .airflowignore file specifies the directories or files in DAG_FOLDER that Airflow should intentionally ignore. Each line in .airflowignore specifies a regular expression pattern, and directories or files whose names (not DAG id) match any of the patterns would be ignored ... | https://stackoverflow.com/questions/78998767/what-is-the-exact-syntax-for-airflowignore | airflow | 1,726,669,861 |
se_77461446 | stackoverflow | DATA_ENGINEERING | How to configure optional component with TFX? | How to configure optional component with TFX?
I would like to run one optional custom component with TFX and Airflow. Is it possible?
This optional component is used to send updates to another system, if this optional component fails, it will not be able to interrupt the execution of the main tasks.
I would like somet... | https://stackoverflow.com/questions/77461446/how-to-configure-optional-component-with-tfx | airflow, tfx | 1,699,633,165 |
se_78991895 | stackoverflow | DATA_ENGINEERING | Appspec.yml not behaving the same as console | Appspec.yml not behaving the same as console
On EC2, I setup a virtual environment called 'venv' to run python.
I'm trying to add new package to python env with codeDeploy appspec.yml.
From appspec.yml (full code below), after updating requirements.txt, I run as ec2-user
source venv/bin/activate
cd /home/ec2-user
pip ... | https://stackoverflow.com/questions/78991895/appspec-yml-not-behaving-the-same-as-console | amazon-ec2, airflow, virtualenv, aws-code-deploy | 1,726,522,715 |
se_58300278 | stackoverflow | DATA_ENGINEERING | How to re-rerun the dag which was already executed using TriggerDagrunoperator? | How to re-rerun the dag which was already executed using TriggerDagrunoperator?
I have a dag,where i'm using list of below operators
TriggerDagrunoperator-to trigger another dag
ExternalTaskSensor-Get the status of triggered dag
My use case:
Say for instance, if entire flow completed successfully, and i found so... | https://stackoverflow.com/questions/58300278/how-to-re-rerun-the-dag-which-was-already-executed-using-triggerdagrunoperator | python, airflow, airflow-scheduler | 1,570,610,759 |
se_73772311 | stackoverflow | DATA_ENGINEERING | How do we trigger single airflow dag multipler times using TriggerDagRunOperator? | How do we trigger single airflow dag multipler times using TriggerDagRunOperator?
I have a Dag with schedule interval None. I want to trigger this Dag by TriggerDagRunOperator multiple times in a day.
I crated a PreDag with schedule_interval "* 1/12 * * *"
Inside PreDag a task of TriggerDagRunOperator runs that Trigge... | https://stackoverflow.com/questions/73772311/how-do-we-trigger-single-airflow-dag-multipler-times-using-triggerdagrunoperator | airflow | 1,663,585,006 |
se_78990577 | stackoverflow | DATA_ENGINEERING | Apache Airflow - list all glue jobs | Apache Airflow - list all glue jobs
In Apache Airflow, I have correctly setup the connection variables in the Connections UI. and saved the following DAG code in the DAG folder.
from airflow import DAG
from airflow.providers.amazon.aws.hooks.glue import GlueJobHook
from airflow.operators.empty import EmptyOperator
fro... | https://stackoverflow.com/questions/78990577/apache-airflow-list-all-glue-jobs | airflow, aws-glue | 1,726,496,420 |
se_78990166 | stackoverflow | DATA_ENGINEERING | How can I purposefully fail my BigQueryInsertJobOperator job? | How can I purposefully fail my BigQueryInsertJobOperator job?
I have a bunch of queries that I have to run in BigQuery from my DAG and they return either 0 or 1 depending on the check that they do, sth like this:
SELECT IF(last_week_count/7>average_daily_threshold, 0, 1) FROM (SELECT ... ;
SELECT IF(last_week_count/7>... | https://stackoverflow.com/questions/78990166/how-can-i-purposefully-fail-my-bigqueryinsertjoboperator-job | sql, google-bigquery, airflow | 1,726,489,496 |
se_77686243 | stackoverflow | DATA_ENGINEERING | Cannot create Cloud Composer 2 - GKE pods fail and missing IAM roles | Cannot create Cloud Composer 2 - GKE pods fail and missing IAM roles
screenshot
Problem: I'm trying to create a Cloud Composer environment, but the CREATE operation is failing with the following error message:
Some of the GKE pods failed to become healthy. Please check the GKE logs for details, and retry the operation... | https://stackoverflow.com/questions/77686243/cannot-create-cloud-composer-2-gke-pods-fail-and-missing-iam-roles | google-cloud-platform, airflow, google-cloud-composer | 1,702,999,277 |
se_52668410 | stackoverflow | DATA_ENGINEERING | How to consider daylight savings time when using cron schedule in Airflow | How to consider daylight savings time when using cron schedule in Airflow
In Airflow, I'd like a job to run at specific time each day in a non-UTC timezone. How can I go about scheduling this?
The problem is that once daylight savings time is triggered, my job will either be running an hour too soon or an hour too l... | https://stackoverflow.com/questions/52668410/how-to-consider-daylight-savings-time-when-using-cron-schedule-in-airflow | airflow | 1,538,751,533 |
se_78987191 | stackoverflow | DATA_ENGINEERING | How to configure a passive task in Airflow that updates its status via the API? | How to configure a passive task in Airflow that updates its status via the API?
I'm working with Apache Airflow and need to configure a task that operates in a passive manner. Specifically, this task should use the Airflow API to update its own status, while the execution of the task itself is handled externally.
For ... | https://stackoverflow.com/questions/78987191/how-to-configure-a-passive-task-in-airflow-that-updates-its-status-via-the-api | airflow | 1,726,397,613 |
se_78769323 | stackoverflow | DATA_ENGINEERING | Apache Airflow service start in wrong folder | Apache Airflow service start in wrong folder
When I start the following airflow service, it create a new folder in /home/airflow/airflow/ instead of using the configuration from /home/airflow/ and initialize a new DB.
Description=Airflow webserver daemon
After=network.target postgresql.service
Wants=postgresql.service... | https://stackoverflow.com/questions/78769323/apache-airflow-service-start-in-wrong-folder | service, airflow, ubuntu-24.04 | 1,721,391,308 |
se_78984249 | stackoverflow | DATA_ENGINEERING | Airflow EMRServerlessCreateApplicationOpertor can't detect application name from airflow input parameter using jinja template | Airflow EMRServerlessCreateApplicationOpertor can't detect application name from airflow input parameter using jinja template
I am trying to create Airflow DAG for EMR Serverless application creation.
EMRServerlessCreateApplicationOperator(
task_id = "create-emrs-app",
job_type = "SPARK",
release_label... | https://stackoverflow.com/questions/78984249/airflow-emrserverlesscreateapplicationopertor-cant-detect-application-name-from | python, python-3.x, airflow, jinja2, emr-serverless | 1,726,285,792 |
se_78969389 | stackoverflow | DATA_ENGINEERING | How to run an Airflow DAG with different parameters across different schedules? | How to run an Airflow DAG with different parameters across different schedules?
I have a DAG that runs a python file (like -- python /path/to/file.py -a -b -c -d) and there are multiple parameters that are to be passed in the command that runs this file. Now, I want to run this same file at different times of the day ... | https://stackoverflow.com/questions/78969389/how-to-run-an-airflow-dag-with-different-parameters-across-different-schedules | python, airflow, directed-acyclic-graphs | 1,725,969,835 |
se_66098050 | stackoverflow | DATA_ENGINEERING | Airflow DAG not triggered at schedule time | Airflow DAG not triggered at schedule time
Below is my DAG code, it is not getting triggered @scheduled time. If I run it manually, it is working fine.
Not sure where the problem is. I tried testing two to three cron expressions but without any luck.
import airflow
from airflow import DAG
from airflow.operators.bash_o... | https://stackoverflow.com/questions/66098050/airflow-dag-not-triggered-at-schedule-time | google-cloud-platform, airflow, google-cloud-composer | 1,612,772,514 |
se_78938424 | stackoverflow | DATA_ENGINEERING | Why the Airflow dag is not getting triggered? | Why the Airflow dag is not getting triggered?
I have attached the code. It's 1st Sept 2024, Sunday, 21:45 UTC. Dag should have triggered. What's the problem with it ? I had to manually trigger it. BTW, rest of the dags are running fine, getting triggered on the scheduled time.
from datetime import timedelta, datetime
... | https://stackoverflow.com/questions/78938424/why-the-airflow-dag-is-not-getting-triggered | python, python-3.x, airflow | 1,725,227,492 |
se_78939686 | stackoverflow | DATA_ENGINEERING | Airflow Task is getting skipped instead of failure | Airflow Task is getting skipped instead of failure
In this code, task this_will_skip has a bash command
echo hello world; exit 99;
Which should result in the failure of task
But the task is getting skipped
& the task which should run after this_will_skip also gets skipped.
Task 'this_will_skip' should fail | https://stackoverflow.com/questions/78939686/airflow-task-is-getting-skipped-instead-of-failure | airflow, airflow-2.x, data-engineering | 1,725,268,059 |
se_78978677 | stackoverflow | DATA_ENGINEERING | How do i configure right the staging and temp buckets at DataprocCreateClusterOperator? | How do i configure right the staging and temp buckets at DataprocCreateClusterOperator?
I'm trying to find how to set the temp and staging buckets at the DataprocOperator. I've searched for all the internet and didnt find a good awnser.
import pendulum
from datetime import timedelta
from airflow.operators.dummy impor... | https://stackoverflow.com/questions/78978677/how-do-i-configure-right-the-staging-and-temp-buckets-at-dataproccreateclusterop | python, google-cloud-platform, airflow, google-cloud-dataproc, google-cloud-composer | 1,726,151,685 |
se_78941448 | stackoverflow | DATA_ENGINEERING | Dag with task based on condition | Dag with task based on condition
I need to create a dag with some tasks that should be executed daily, and one task that should be executed monthly on the 1st of each month:
task_1: should be executed daily
task_2: should be executed monthly, on the 1st of each month
task_3: should be executed dailly
So basically my d... | https://stackoverflow.com/questions/78941448/dag-with-task-based-on-condition | python, airflow | 1,725,296,150 |
se_78973834 | stackoverflow | DATA_ENGINEERING | rendering parameters of the DatabricksWorkflowTaskGroup | rendering parameters of the DatabricksWorkflowTaskGroup
My understanding is that the DatabricksWorkflowTaskGroup is inheriting from a TaskGroup which doesn't perform template rendering,
The branch name is defined in my variables json files, one for staging and one for production.
I'm not sure what's the best option fo... | https://stackoverflow.com/questions/78973834/rendering-parameters-of-the-databricksworkflowtaskgroup | airflow, databricks | 1,726,058,338 |
se_77663744 | stackoverflow | DATA_ENGINEERING | Airflow DAG Serialization/DagBag Issues After Major Upgrade | Airflow DAG Serialization/DagBag Issues After Major Upgrade
We've recently upgraded our Airflow environment from 2.5.1 to 2.7.2.
Some users are experiencing longer times than usual for DAGs to update in the UI once the files are updated. This seems like a problem with DAG serialization, but the DagFileProcessorManager... | https://stackoverflow.com/questions/77663744/airflow-dag-serialization-dagbag-issues-after-major-upgrade | airflow, airflow-2.x, airflow-webserver | 1,702,600,764 |
se_78648819 | stackoverflow | DATA_ENGINEERING | How to change Airflow docker image? | How to change Airflow docker image?
I got working Airflow image.
But I need add new Python library to Airflow.
I got "/opt/beget/airflow/docker-compose.yml".
I create file Dockerfile in same folder with code:
FROM apache/airflow
RUN pip install clickhouse-connect
So I need edit current image apache/airflow.
there's ... | https://stackoverflow.com/questions/78648819/how-to-change-airflow-docker-image | python, docker, airflow | 1,718,903,131 |
se_78725603 | stackoverflow | DATA_ENGINEERING | How to get requirements from my Airflow python environment | How to get requirements from my Airflow python environment
How to perform pip freeze > requirements.txt for Airflow environment?
Or get list of packages by another way.
Airflow v. 2.8.2 installed with Docker. | https://stackoverflow.com/questions/78725603/how-to-get-requirements-from-my-airflow-python-environment | python, airflow | 1,720,528,181 |
se_78879558 | stackoverflow | DATA_ENGINEERING | Update airflow config without restarting scheduler with LocalExecutor | Update airflow config without restarting scheduler with LocalExecutor
I have a bunch of tasks running and want to update airflow.cfg to enable more tasks to run simultaneously. My understanding is that I need to restart the scheduler for these updates to take place. However, when I try to restart the scheduler, I get ... | https://stackoverflow.com/questions/78879558/update-airflow-config-without-restarting-scheduler-with-localexecutor | python, airflow, config | 1,723,817,880 |
se_60486239 | stackoverflow | DATA_ENGINEERING | How to Configure Airflow Celery executor with redis sentinel? | How to Configure Airflow Celery executor with redis sentinel?
Redis sentinel setup is done.
what all changes i have to do to point my celery backend to redis-sentinel?
i am using redis as a broker for celery executor. | https://stackoverflow.com/questions/60486239/how-to-configure-airflow-celery-executor-with-redis-sentinel | redis, celery, airflow, master-slave, sentinel | 1,583,142,657 |
se_52741536 | stackoverflow | DATA_ENGINEERING | Running airflow tasks/dags in parallel | Running airflow tasks/dags in parallel
I'm using airflow to orchestrate some python scripts. I have a "main" dag from which several subdags are run. My main dag is supposed to run according to the following overview:
I've managed to get to this structure in my main dag by using the following lines:
etl_internal_su... | https://stackoverflow.com/questions/52741536/running-airflow-tasks-dags-in-parallel | python, python-3.x, parallel-processing, airflow | 1,539,178,647 |
se_73941941 | stackoverflow | DATA_ENGINEERING | In Airflow UI, how to add SQL Server connection type | In Airflow UI, how to add SQL Server connection type
I had set up airflow in my machine using astro CLI as mentioned here https://www.astronomer.io/guides/get-started-airflow-2/ . I wanted to use SQL Server connection in Airflow UI, but I don't see it anywhere.
Can someone tell me how I can add it since I need this pr... | https://stackoverflow.com/questions/73941941/in-airflow-ui-how-to-add-sql-server-connection-type | airflow | 1,664,842,255 |
se_78961524 | stackoverflow | DATA_ENGINEERING | How to stop airflow webserver? | How to stop airflow webserver?
I followed this tutorial to install apache airflow on my mac inside conda environment with python version 3.11.
Now I want to close the airflow webserver but I'm not able to.
So I tried this solution. But it is not working.
(base) giteshwarmali@Giteshwars-MacBook-Pro orchestration % kill... | https://stackoverflow.com/questions/78961524/how-to-stop-airflow-webserver | airflow, airflow-webserver | 1,725,764,169 |
se_78906676 | stackoverflow | DATA_ENGINEERING | Airflow TriggerDagRunOperator randomly failing with parallel run | Airflow TriggerDagRunOperator randomly failing with parallel run
I have a DAG that is running another DAGs with TriggerDagRunOperator
trigger_1 = TriggerDagRunOperator(
task_id='trigger_dag1',
trigger_dag_id='job1',
wait_for_completion=True,
trigger_rule='all_done',
poke_interva... | https://stackoverflow.com/questions/78906676/airflow-triggerdagrunoperator-randomly-failing-with-parallel-run | airflow, airflow-webserver, airflow-taskflow | 1,724,428,497 |
se_78958036 | stackoverflow | DATA_ENGINEERING | Airflow is refusing to use postgresql for db operations | Airflow is refusing to use postgresql for db operations
I'm trying to set up postgres as a DB backend. If I run get-value, it returns the correct thing:
$ airflow config get-value database sql_alchemy_conn
postgresql+psycopg2://airflow_user:airflow_pass@localhost/airflow_db
However, the db command uses sqlite!
$ airf... | https://stackoverflow.com/questions/78958036/airflow-is-refusing-to-use-postgresql-for-db-operations | airflow | 1,725,640,920 |
se_70434588 | stackoverflow | DATA_ENGINEERING | Facing Issue in passing metadata field with DataprocCreateClusterOperator (Airflow 2.0) | Facing Issue in passing metadata field with DataprocCreateClusterOperator (Airflow 2.0)
I am facing some issues while installing Packages in the Dataproc cluster using DataprocCreateClusterOperator
I am trying to upgrade to Airflow 2.0
Error Message:
ValueError: metadata was invalid: [('bigquery-connector-version', '1... | https://stackoverflow.com/questions/70434588/facing-issue-in-passing-metadata-field-with-dataproccreateclusteroperator-airfl | python, airflow, google-cloud-dataproc, airflow-2.x | 1,640,085,479 |
se_78952766 | stackoverflow | DATA_ENGINEERING | Calling a python library which calls a rest enpoint in Airflow DAG throws connection timeout error | Calling a python library which calls a rest enpoint in Airflow DAG throws connection timeout error
I have a python library, which calls a specific rest endpoint. But using that inside an airflow dag throws connection timeout error. Do we have to do something additional to allow connection to endpoints outside airflow? | https://stackoverflow.com/questions/78952766/calling-a-python-library-which-calls-a-rest-enpoint-in-airflow-dag-throws-connec | airflow, directed-acyclic-graphs, airflow-2.x | 1,725,535,205 |
se_71298983 | stackoverflow | DATA_ENGINEERING | Airflow Helm Chart Worker Node Error - CrashLoopBackOff | Airflow Helm Chart Worker Node Error - CrashLoopBackOff
I am using official Helm chart for airflow. Every Pod works properly except Worker node.
Even in that worker node, 2 of the containers (git-sync and worker-log-groomer) works fine.
The error happened in the 3rd container (worker) with CrashLoopBackOff. Exit code ... | https://stackoverflow.com/questions/71298983/airflow-helm-chart-worker-node-error-crashloopbackoff | kubernetes, airflow, kubernetes-helm, kubectl | 1,646,070,336 |
se_77343763 | stackoverflow | DATA_ENGINEERING | ERROR - Exception rendering Jinja template for task from BigQueryExecuteQueryOperator in Airflow | ERROR - Exception rendering Jinja template for task from BigQueryExecuteQueryOperator in Airflow
I've been getting this following issue, for the last couple of weeks out of no where.
ERROR - Exception rendering Jinja template for task
'sometask', field 'sql'
jinja2.exceptions.TemplateNotFound:
sql/test.sql
I have a ... | https://stackoverflow.com/questions/77343763/error-exception-rendering-jinja-template-for-task-from-bigqueryexecutequeryope | python-3.x, google-bigquery, airflow, airflow-2.x | 1,698,050,263 |
se_78948628 | stackoverflow | DATA_ENGINEERING | Airflow kubernetesExecutor kubernetes_environment_variables and kubernetes_secrets not passed to generated pod | Airflow kubernetesExecutor kubernetes_environment_variables and kubernetes_secrets not passed to generated pod
I'm deploying Apache Airflow 2.9.2 with the Kubernetes Executor in an AKS cluster.
KubernetesExecutor will create a pod for each of the tasks to be executed.
I see that this pod is defined by a pod template. ... | https://stackoverflow.com/questions/78948628/airflow-kubernetesexecutor-kubernetes-environment-variables-and-kubernetes-secre | airflow, kubernetesexecutor | 1,725,452,681 |
se_78943800 | stackoverflow | DATA_ENGINEERING | Run tasks from other dag from a parent dag | Run tasks from other dag from a parent dag
Is there any way to run a particular task of a dag from another dag? I need to clear TaskA from dag1 using dag2.
I know there is a cli command that clears and reruns the tasks. But I need it implemented inside the airflow code. | https://stackoverflow.com/questions/78943800/run-tasks-from-other-dag-from-a-parent-dag | python, airflow, airflow-2.x, airflow-taskflow | 1,725,358,298 |
se_76808292 | stackoverflow | DATA_ENGINEERING | How to update airflow.cfg file in MWAA local Runner | How to update airflow.cfg file in MWAA local Runner
I need to update the airflow configuration file (usr/local/airflow/airflow.cfg) in my Docker image running MWAA-Local-Runner.
However, the changes I do when editing the file from my host computer are not reflected when restarting the environment using ./mwaa-local-e... | https://stackoverflow.com/questions/76808292/how-to-update-airflow-cfg-file-in-mwaa-local-runner | docker, airflow, mwaa | 1,690,859,816 |
se_78918921 | stackoverflow | DATA_ENGINEERING | Airflow Scheduler Hanging When Run with Remote Database | Airflow Scheduler Hanging When Run with Remote Database
I am Using Openshift to deploy decoupled units of Apache Airflow (version 2.8.3) each Scheduler and Webserver is running in separate deployments, in terms of the meta database I am using MySQL 8.3 official image in separate deployments also.
Now the Issue happens... | https://stackoverflow.com/questions/78918921/airflow-scheduler-hanging-when-run-with-remote-database | mysql, airflow, openshift, podman | 1,724,762,137 |
se_78942475 | stackoverflow | DATA_ENGINEERING | Apache Airflow Unable To Run It | Apache Airflow Unable To Run It
I have been trying to install Apache Airflow on my local Mac machine for weeks. No tutorial have been helpful, I've been literally reading the Airflow website docs through and through, copying step by step processes, used Claude and ChatGPT but I don't seem to get it running.
When I run... | https://stackoverflow.com/questions/78942475/apache-airflow-unable-to-run-it | python, airflow | 1,725,329,763 |
se_78490752 | stackoverflow | DATA_ENGINEERING | Can't use the Airflow module and show the TypeError 'module' object is not callable | Can't use the Airflow module and show the TypeError 'module' object is not callable
I am using WSL2 ubuntu linux system and try to use Airflow on Windows
Operating on Vscode
I installed the 2.4.1 version of Airflow
When I tried to ,
I got the below error:
Traceback (most recent call last):
File "/home/s... | https://stackoverflow.com/questions/78490752/cant-use-the-airflow-module-and-show-the-typeerror-module-object-is-not-calla | windows, ubuntu, airflow, typeerror | 1,715,870,819 |
se_78941585 | stackoverflow | DATA_ENGINEERING | Error when working with Airflow and Jupyter Notebook | Error when working with Airflow and Jupyter Notebook
I have installed Airflow on wsl. I picked up the service and wrote the first dag, I wrote the dag in jupiter notebook, which I also installed on wsl in the necessary environment. But Airflow does not see my dag even when working out the following command: airflow do... | https://stackoverflow.com/questions/78941585/error-when-working-with-airflow-and-jupyter-notebook | jupyter-notebook, airflow, windows-subsystem-for-linux | 1,725,299,090 |
se_78937528 | stackoverflow | DATA_ENGINEERING | Connection refused when calling Postgres container from another docker container | Connection refused when calling Postgres container from another docker container
I am using Airflow's Docker Compose to setup Airflow and a Postgres Database in distinct containers. Everything seems fine, but when I try to insert data in Postgres from Airflow I get the following error :
psycopg2.OperationalError: conn... | https://stackoverflow.com/questions/78937528/connection-refused-when-calling-postgres-container-from-another-docker-container | postgresql, docker, airflow | 1,725,199,688 |
se_63792403 | stackoverflow | DATA_ENGINEERING | How to run Airflow Web Console on different port? | How to run Airflow Web Console on different port?
Today, I was trying to run the web console of Airflow on a port other than 8080 like 80, 8090.
But every time I mention a different port in airflow.cfg and re-initialize Airflow and run airflow webserver -D the web console was still running at port 8080.
Can anyone hel... | https://stackoverflow.com/questions/63792403/how-to-run-airflow-web-console-on-different-port | airflow | 1,599,562,360 |
se_78932870 | stackoverflow | DATA_ENGINEERING | Service account cannot get resource \"sparkapplications/status\" in API group \"sparkoperator.k8s.io\" | Service account cannot get resource \"sparkapplications/status\" in API group \"sparkoperator.k8s.io\"
I updated my Airflow from version 2.30 to 2.9.3. Now I'm trying to run a spark job and I'm getting this error (SparkPodOperator):
[2024-08-30, 13:57:04 UTC] {spark_kubernetes.py:282} INFO - Creati... | https://stackoverflow.com/questions/78932870/service-account-cannot-get-resource-sparkapplications-status-in-api-group | apache-spark, kubernetes, airflow, rbac | 1,725,033,209 |
se_78922791 | stackoverflow | DATA_ENGINEERING | Is there a way to pass the dataproc version via the Airflow DataprocCreateBatchOperator method? | Is there a way to pass the dataproc version via the Airflow DataprocCreateBatchOperator method?
I've just run into an issue where the default version of dataproc upgraded and broke my job which is being submitted using the DataprocCreateBatchOperator method through airflow.
task2 = DataprocCreateBatchOperator(
... | https://stackoverflow.com/questions/78922791/is-there-a-way-to-pass-the-dataproc-version-via-the-airflow-dataproccreatebatcho | airflow, dataproc, google-cloud-dataproc-serverless, astronomer | 1,724,840,690 |
se_78922791 | stackoverflow | DATA_ENGINEERING | Is there a way to pass the dataproc version via the Airflow DataprocCreateBatchOperator method? | Is there a way to pass the dataproc version via the Airflow DataprocCreateBatchOperator method?
I've just run into an issue where the default version of dataproc upgraded and broke my job which is being submitted using the DataprocCreateBatchOperator method through airflow.
task2 = DataprocCreateBatchOperator(
... | https://stackoverflow.com/questions/78922791/is-there-a-way-to-pass-the-dataproc-version-via-the-airflow-dataproccreatebatcho | airflow, dataproc, google-cloud-dataproc-serverless, astronomer | 1,724,840,690 |
se_78934931 | stackoverflow | DATA_ENGINEERING | Error loop when using Airflow's docker compose file | Error loop when using Airflow's docker compose file
I am trying to run a docker compose file from official Airflow repository (with airflow image = apache/airflow:slim-latest):
However when I run docker compose up I get the following error :
ModuleNotFoundError: No module named 'psycopg2'
I tried to fix the issue... | https://stackoverflow.com/questions/78934931/error-loop-when-using-airflows-docker-compose-file | docker, docker-compose, airflow | 1,725,102,973 |
se_51558313 | stackoverflow | DATA_ENGINEERING | What is the difference between min_file_process_interval and dag_dir_list_interval in Apache Airflow 1.9.0? | What is the difference between min_file_process_interval and dag_dir_list_interval in Apache Airflow 1.9.0?
We are using Airflow v 1.9.0. We have 100+ dags and the instance is really slow. The scheduler is only launching some tasks.
In order to reduce the amount of CPU usage, we want to tweak some configuration param... | https://stackoverflow.com/questions/51558313/what-is-the-difference-between-min-file-process-interval-and-dag-dir-list-interv | airflow | 1,532,695,812 |
se_59857097 | stackoverflow | DATA_ENGINEERING | Airflow duplicating logs | Airflow duplicating logs
I'm using Airflow 1.10.4 and I'm facing a problem when I use logging in my custom modules.
My code be like:
import logging
log = logging.getLogger(__name__)
log.info('hello there')
And the output be like:
[2020-01-22 09:44:29,954] {{logging_mixin.py:95}} INFO - [[34m2020-01-22 09:44:29,95... | https://stackoverflow.com/questions/59857097/airflow-duplicating-logs | airflow | 1,579,687,454 |
se_78927400 | stackoverflow | DATA_ENGINEERING | Bitnami Airflow chart 19.0.3 (Airflow version 2.10) not creating pods with unique names | Bitnami Airflow chart 19.0.3 (Airflow version 2.10) not creating pods with unique names
Reason: Conflict
HTTP response headers: HTTPHeaderDict({'Audit-Id': 'd4e76ef2-4512-4e87-a2e6-bb413059a56b', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Kubernetes-Pf-Flowschema-Uid': '6b88bf45-8d78-... | https://stackoverflow.com/questions/78927400/bitnami-airflow-chart-19-0-3-airflow-version-2-10-not-creating-pods-with-uniqu | airflow, unique, bitnami, kubernetesexecutor | 1,724,928,267 |
se_50671671 | stackoverflow | DATA_ENGINEERING | Apache Airflow ImportError: cannot import name '_psutil_linux' | Apache Airflow ImportError: cannot import name '_psutil_linux'
I am installing apache airflow as per the installation steps provided at https://airflow.apache.org/start.html#quick-start
First Step - export AIRFLOW_HOME=~/airflow (No error)
Second Step - pip install apache-airflow (No error)
Third Step - airf... | https://stackoverflow.com/questions/50671671/apache-airflow-importerror-cannot-import-name-psutil-linux | python, python-3.x, pip, airflow, psutil | 1,528,066,146 |
se_73612210 | stackoverflow | DATA_ENGINEERING | Apache Airflow unit and integration test | Apache Airflow unit and integration test
I am new to Apache Airflow and I am trying to figure out how to unit/integration test my dags/tasks
Here is my directory structure
/airflow
/dags
/tests/dags
I created a simple DAG which has a task to reads data from a Postgres table
def read_files(ti):
sql = "select... | https://stackoverflow.com/questions/73612210/apache-airflow-unit-and-integration-test | python, airflow | 1,662,394,758 |
se_67988153 | stackoverflow | DATA_ENGINEERING | How to fix "Failed to fetch log file from worker. Unsupported URL protocol" error in Airflow DAG logs? | How to fix "Failed to fetch log file from worker. Unsupported URL protocol" error in Airflow DAG logs?
I am running Airflow via docker through this image apache/airflow:2.1.0
Please refer to this thread for the initial error I faced.
Currently I am able to run my previous existing DAGs.
However when I add ne... | https://stackoverflow.com/questions/67988153/how-to-fix-failed-to-fetch-log-file-from-worker-unsupported-url-protocol-erro | airflow-scheduler, airflow, airflow-webserver | 1,623,767,008 |
se_78917083 | stackoverflow | DATA_ENGINEERING | dockerfile pip error cannot find versions for packages in requirements.txt | dockerfile pip error cannot find versions for packages in requirements.txt
I have a dockerfile like this:
FROM nexus3/docker-hub/apache/airflow:slim-2.10.0-python3.11
ENV PIP_CONFIG_FILE=/home/airflow/pip.conf
ENV AIRFLOW_VERSION=2.10.0
RUN --mount=type=secret,id=pip,target=/home/airflow/pip.conf,uid=50000,required=... | https://stackoverflow.com/questions/78917083/dockerfile-pip-error-cannot-find-versions-for-packages-in-requirements-txt | python, docker, pip, airflow | 1,724,731,649 |
se_76422070 | stackoverflow | DATA_ENGINEERING | Airflow web-ui Could not read served logs | Airflow web-ui Could not read served logs
I am running Airflow 2.6.1 locally, via docker container, and I am having issues displaying the task logs in the web-ui.
I get the following message:
*** Could not read served logs: Client error '404 NOT FOUND' for url 'http://f691dce3682f:8793/log/dag_id=file_transfer_DAVIS0... | https://stackoverflow.com/questions/76422070/airflow-web-ui-could-not-read-served-logs | docker, logging, airflow | 1,686,131,970 |
se_78145304 | stackoverflow | DATA_ENGINEERING | Deploy Airflow with Helm Chart, pods stuck on "wait-for-airflow-migration" | Deploy Airflow with Helm Chart, pods stuck on "wait-for-airflow-migration"
I am trying to deploy airflow based on this helm chart version:
https://github.com/apache/airflow/blob/v2-7-stable/chart/Chart.yaml
Also following this production guide, I'd like to use AWS RDS PostgresSql as the external DB to store ... | https://stackoverflow.com/questions/78145304/deploy-airflow-with-helm-chart-pods-stuck-on-wait-for-airflow-migration | postgresql, airflow | 1,710,228,609 |
se_78905716 | stackoverflow | DATA_ENGINEERING | For using the files in other folder outside of dags, inside dags/ folder in apache airflow | For using the files in other folder outside of dags, inside dags/ folder in apache airflow
I have the structure of folder as:
folder_structure
I want to use files which are present in deps folder in the dag files present in dags folder, how to do that?
Can someone please help me with this
I tried adding these lines of... | https://stackoverflow.com/questions/78905716/for-using-the-files-in-other-folder-outside-of-dags-inside-dags-folder-in-apac | python, design-patterns, airflow, reusability, modularization | 1,724,413,054 |
se_78878316 | stackoverflow | DATA_ENGINEERING | Error trying to run a python script from a Google Cloud DAG | Error trying to run a python script from a Google Cloud DAG
I have created a DAG in a bucket in Google Cloud, and want to run a python script which I have saved in the scripts folder of the bucket. However, I am either faced with a DAG Import error or a folder/file not found error.
In my DAG I have the following task ... | https://stackoverflow.com/questions/78878316/error-trying-to-run-a-python-script-from-a-google-cloud-dag | python, google-cloud-platform, airflow, directed-acyclic-graphs | 1,723,797,963 |
se_78874499 | stackoverflow | DATA_ENGINEERING | Influxdb: store data into influxdb from oracle database using apache airflow | Influxdb: store data into influxdb from oracle database using apache airflow
I am using Apache airflow for storing data in influxdb from oracle database. I need to store all data from oracle database into influxdb. But it insert last row of data only each company_id. Other data not insert. Here is oracle data set:
He... | https://stackoverflow.com/questions/78874499/influxdb-store-data-into-influxdb-from-oracle-database-using-apache-airflow | python, airflow, influxdb | 1,723,714,805 |
se_39610313 | stackoverflow | DATA_ENGINEERING | How to use AirFlow to run a folder of python files? | How to use AirFlow to run a folder of python files?
I have a series of Python tasks inside a folder of python files: file1.py, file2.py, ...
I read the Airflow docs, but I don't see how to specify the folder and filename of the python files in the DAG?
I would like to execute those python files (not the Python funct... | https://stackoverflow.com/questions/39610313/how-to-use-airflow-to-run-a-folder-of-python-files | python, airflow | 1,474,443,606 |
se_78608348 | stackoverflow | DATA_ENGINEERING | Airflow task_group with list from previous task | Airflow task_group with list from previous task
Based on the following answer to a similar question, I'm trying to create an airflow task_group based of an output from a previous task.
More precisely, my first task uses the ExecuteSQLQueryOperator which returns a list. And I want to use this list to map it to a task g... | https://stackoverflow.com/questions/78608348/airflow-task-group-with-list-from-previous-task | python, airflow | 1,718,117,951 |
se_78892838 | stackoverflow | DATA_ENGINEERING | Airflow DAG ignores custom MongoDB connection, uses mongo_default instead | Airflow DAG ignores custom MongoDB connection, uses mongo_default instead
I'm facing an issue with Apache Airflow where my DAG is not using the custom MongoDB connection I've defined. Instead, it's defaulting to the 'mongo_default' connection. This is causing problems with my workflow as it's not connecting to the cor... | https://stackoverflow.com/questions/78892838/airflow-dag-ignores-custom-mongodb-connection-uses-mongo-default-instead | python, mongodb, airflow, airflow-2.x | 1,724,162,094 |
se_78891787 | stackoverflow | DATA_ENGINEERING | Getting the "psycopg2.errors.BadCopyFileFormat: missing data for column" error | Getting the "psycopg2.errors.BadCopyFileFormat: missing data for column" error
When trying to load data from a csv file into Postgres db using PostgresHook.bulk_load, an error occurs
[2024-08-20, 09:02:01 UTC] {postgres.py:168} INFO - Running copy expert: COPY test_nikita2 FROM STDIN, filename: /opt/airflow/... | https://stackoverflow.com/questions/78891787/getting-the-psycopg2-errors-badcopyfileformat-missing-data-for-column-error | python, postgresql, airflow | 1,724,148,067 |
se_72022049 | stackoverflow | DATA_ENGINEERING | Can two separate sets of Alembic migrations be applied to the same database? | Can two separate sets of Alembic migrations be applied to the same database?
Background: Airflow uses Alembic to apply migrations to the database it uses to store DAG/task metadata. I want to store some other data in this database, and would like to track my schema changes through Alembic migrations. It can be assumed... | https://stackoverflow.com/questions/72022049/can-two-separate-sets-of-alembic-migrations-be-applied-to-the-same-database | python, sqlalchemy, airflow, alembic | 1,651,020,225 |
se_73330259 | stackoverflow | DATA_ENGINEERING | ERROR: relation "log" does not exist at character 13 when install marquez and airflow | ERROR: relation "log" does not exist at character 13 when install marquez and airflow
i want to install marquez and airflow in docker but i got error when execution postgress. i use image bitnami/airflow
my error : error
docker-compose.yml
postgres:
image: postgres:13
ports:
- "5432:5432"
e... | https://stackoverflow.com/questions/73330259/error-relation-log-does-not-exist-at-character-13-when-install-marquez-and-ai | postgresql, docker, docker-compose, airflow, bitnami | 1,660,287,055 |
se_78883675 | stackoverflow | DATA_ENGINEERING | Airflow with Docker Compose - Containers Stuck in "Starting" State with High CPU/Memory Usage | Airflow with Docker Compose - Containers Stuck in "Starting" State with High CPU/Memory Usage
I'm encountering an issue with a Docker Compose deployment where multiple services, including Apache Airflow, are constantly stuck in the "starting" state. My docker-compose.yml file defines several services, includ... | https://stackoverflow.com/questions/78883675/airflow-with-docker-compose-containers-stuck-in-starting-state-with-high-cpu | docker, amazon-ec2, docker-compose, containers, airflow | 1,723,951,598 |
se_78881779 | stackoverflow | DATA_ENGINEERING | Apache Airflow giving Broken DAG | Apache Airflow giving Broken DAG
Apache Airflow giving broken DAG and can't seem to retrieve information from my dbt-dag.py
Error Code:
Broken DAG: [/usr/local/airflow/dags/dbt-dag.py]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/cosmos/operators/base.py", line 361, in __init__
... | https://stackoverflow.com/questions/78881779/apache-airflow-giving-broken-dag | snowflake-cloud-data-platform, airflow | 1,723,884,503 |
se_78828690 | stackoverflow | DATA_ENGINEERING | Unexpected String Concatenation Issue in Airflow 2.7.2 DAG | Unexpected String Concatenation Issue in Airflow 2.7.2 DAG
I am encountering an unexpected issue with string concatenation in Airflow 2.7.2 using Python 3.11.5.
This problem occurs only in Airflow; the same string concatenation works correctly in local unit tests.
Here is the code snippet in DAG demonstrating the issu... | https://stackoverflow.com/questions/78828690/unexpected-string-concatenation-issue-in-airflow-2-7-2-dag | python, python-3.x, airflow, airflow-2.x | 1,722,689,122 |
se_78878809 | stackoverflow | DATA_ENGINEERING | Not uploading file to postgres with bulk_load. Apache Airflow | Not uploading file to postgres with bulk_load. Apache Airflow
I create a file in task, then use bulk_load to load it into the database. The code is executed without errors, but nothing appears in the database, what could be the problem?
Code that I think doesn't work:
path = r'/opt/airflow/dags/asd/data/'
with open(o... | https://stackoverflow.com/questions/78878809/not-uploading-file-to-postgres-with-bulk-load-apache-airflow | python, postgresql, airflow | 1,723,805,650 |
se_78322922 | stackoverflow | DATA_ENGINEERING | How to correctly map task ids in Dynamic Task Mapping feature Airflow? | How to correctly map task ids in Dynamic Task Mapping feature Airflow?
I use Airflow 2.9 and I have created two tasks with PythonOperator. The first task calls python function an generates list of task names. Then the list passed to the next task which generates tasks with Dynamic Task Mapping feature.
def get_tas... | https://stackoverflow.com/questions/78322922/how-to-correctly-map-task-ids-in-dynamic-task-mapping-feature-airflow | python, airflow | 1,713,075,931 |
se_78875148 | stackoverflow | DATA_ENGINEERING | Whitch metadata database objects I can delete in Airflow 2.8.2? | Whitch metadata database objects I can delete in Airflow 2.8.2?
I got Airflow 2.8.2 installed with Docker.
I need clean Postgres database used with Airlow to free space on hard drive.
First of all this is my database memory usage:
As I know I can't just delete rows from tables.
So I found simple dag for clearing data... | https://stackoverflow.com/questions/78875148/whitch-metadata-database-objects-i-can-delete-in-airflow-2-8-2 | airflow | 1,723,725,939 |
se_78865940 | stackoverflow | DATA_ENGINEERING | The task completes with the SKIPPED status if it was started outside the interval of the schedule_interval parameter | The task completes with the SKIPPED status if it was started outside the interval of the schedule_interval parameter
In my DAG setup, the schedule_interval parameter has a cron expression = run 1 time per hour from 5-12 and from 13-18. And one hour (from 12-13) outside this interval.
If you manually start a task (CLEA... | https://stackoverflow.com/questions/78865940/the-task-completes-with-the-skipped-status-if-it-was-started-outside-the-interva | airflow | 1,723,547,769 |
se_71484006 | stackoverflow | DATA_ENGINEERING | Cannot get persistent logs using KubernetesExecutor with an EFS volume using official airflow helm chart | Cannot get persistent logs using KubernetesExecutor with an EFS volume using official airflow helm chart
I see the PVC is bounded to the PV. But when I enable log.persistence.enabled: true, the scheduler and webserver keeps crashing because it does not have permission to the logs folder. This is the error when I descr... | https://stackoverflow.com/questions/71484006/cannot-get-persistent-logs-using-kubernetesexecutor-with-an-efs-volume-using-off | airflow | 1,647,354,757 |
se_78009840 | stackoverflow | DATA_ENGINEERING | airflow.exceptions.AirflowConfigException: error: cannot use sqlite with the CeleryExecutor | airflow.exceptions.AirflowConfigException: error: cannot use sqlite with the CeleryExecutor
I've been attempting to set up Apache Airflow on my local machine using Docker Compose.
I followed the official Docker Compose guide provided in the Airflow documentation (https://airflow.apache.org/docs/apache-airflow/stable/h... | https://stackoverflow.com/questions/78009840/airflow-exceptions-airflowconfigexception-error-cannot-use-sqlite-with-the-cel | python, docker, airflow | 1,708,114,985 |
se_78877410 | stackoverflow | DATA_ENGINEERING | Airflow Glue Catalog Partition sensor | Airflow Glue Catalog Partition sensor
I have a glue catalog table which is updated by an upstream process multiple times in a day. Table is partitioned on two columns business_date and source. Upstream will never append data in a partition. If partition already exists, it will be overwritten. Also upstream can modify... | https://stackoverflow.com/questions/78877410/airflow-glue-catalog-partition-sensor | airflow, amazon-athena | 1,723,774,361 |
se_78858724 | stackoverflow | DATA_ENGINEERING | Do I need Apache Spark to execute my Airflow DAG tasks? | Do I need Apache Spark to execute my Airflow DAG tasks?
I have a workflow with multiple DAGs. Every DAG has multiple tasks.
These tasks are simple ETL tasks. It involves geo data in the form of kmls, csvs.
An example task:
We have meta data of road collection points in the form of latitude, longitude. We make linestri... | https://stackoverflow.com/questions/78858724/do-i-need-apache-spark-to-execute-my-airflow-dag-tasks | python, apache-spark, airflow, distributed-computing | 1,723,391,174 |
se_50603012 | stackoverflow | DATA_ENGINEERING | AttributeError: 'NoneType' object has no attribute 'execute' | AttributeError: 'NoneType' object has no attribute 'execute'
I am trying to run a python script that logs into Amazon Redshift DB and then execute a SQL command. I use a tool called Airflow for workflow management. When running the below code, I am able to login fine to the DB but when trying to execut... | https://stackoverflow.com/questions/50603012/attributeerror-nonetype-object-has-no-attribute-execute | python, python-3.x, airflow | 1,527,678,105 |
se_72984576 | stackoverflow | DATA_ENGINEERING | Airflow: connection type for SQL Server missing | Airflow: connection type for SQL Server missing
I am trying to connect to a SQL Server through Airflow.
I have gone to Admin -> Connections and I am trying to add a new connection, however the connection type for Microsoft SQL Server is missing. I only see MySql.
I have downloaded the provider package and I am able to... | https://stackoverflow.com/questions/72984576/airflow-connection-type-for-sql-server-missing | sql-server, airflow | 1,657,820,272 |
se_78581725 | stackoverflow | DATA_ENGINEERING | Airflow connection configuration with Google Cloud Service Account | Airflow connection configuration with Google Cloud Service Account
I have an Airflow instance mounted on AWS. I need to configure a connection to extract files from GDrive. I've already created a JSON key file for the service account. The JSON looks like:
{
"type": "service_account",
"project_id": "",
"private_k... | https://stackoverflow.com/questions/78581725/airflow-connection-configuration-with-google-cloud-service-account | google-api, airflow, airflow-connections | 1,717,597,858 |
se_78849988 | stackoverflow | DATA_ENGINEERING | How do I attach the contents of a failed Airflow task log to the failure notification email message? | How do I attach the contents of a failed Airflow task log to the failure notification email message?
I have an Airflow DAG that runs a BashOperator task. When it fails I get an email with not much detail:
Try 1 out of 1
Exception:
Bash command failed. The command returned a non-zero exit code 1.
Log: Link
Host: 2db56... | https://stackoverflow.com/questions/78849988/how-do-i-attach-the-contents-of-a-failed-airflow-task-log-to-the-failure-notific | python, airflow | 1,723,142,885 |
se_78854485 | stackoverflow | DATA_ENGINEERING | Datadog exclude the logs | Datadog exclude the logs
I am trying to exclude Info-related logs on Datadog from airflow but this is not helping. Any thoughts if I am doing something wrong?
ad.datadoghq.com/worker.logs: '[{"source": "airflow","service":"airflow",
"log_processing_rules": [{"type": "exclude_at_match", "name":
"exclude_hea... | https://stackoverflow.com/questions/78854485/datadog-exclude-the-logs | logging, airflow, datadog | 1,723,234,355 |
se_78862512 | stackoverflow | DATA_ENGINEERING | use xcom shared variable as key in BigQueryInsertJobOperator configuration | use xcom shared variable as key in BigQueryInsertJobOperator configuration
I am having a case where I want to share a string to a BigQueryInsertJobOperator and use it as a key to take a given configuration. I try to do it as is:
Inside dag definition I am using PythonOperator to push a variable to xcom:
def capture_mo... | https://stackoverflow.com/questions/78862512/use-xcom-shared-variable-as-key-in-bigqueryinsertjoboperator-configuration | python, google-bigquery, airflow, airflow-xcom | 1,723,477,076 |
se_78863989 | stackoverflow | DATA_ENGINEERING | Dynamically selecting queues in Airflow | Dynamically selecting queues in Airflow
Is it possible to dynamically assign a queue to a task in Airflow based on runtime conditions? For instance, I want to determine the queue for a task based on an XCom value provided by a previous task?
I am designing a system consisting of multiple Celery workers, and I want to ... | https://stackoverflow.com/questions/78863989/dynamically-selecting-queues-in-airflow | python, rabbitmq, airflow, celery | 1,723,508,717 |
se_78844298 | stackoverflow | DATA_ENGINEERING | Capture airflow run duration | Capture airflow run duration
I have a requirement to gather run duration (time) for the last 3 months, for a particular airflow job.
In our CDE environment we use airflow to call spark DBT jobs, of late the run duration of job have increased drastically.
I assume there would be a way to gather this jobs runtime durati... | https://stackoverflow.com/questions/78844298/capture-airflow-run-duration | airflow, cloudera, cloudera-cdp | 1,723,041,652 |
se_78833868 | stackoverflow | DATA_ENGINEERING | How to clean data from Postgres installed with Airflow? | How to clean data from Postgres installed with Airflow?
I got installed with Docker Airflow 2.8.2.
With Airflow, Postgres is also installed.
File path to Postgres is /***/airflow/postgres.
I found that Postgres folder takes to much memory.
/*/airflow/postgres/base takes 24 Gb.
All files got names like 16442, 16451, 1... | https://stackoverflow.com/questions/78833868/how-to-clean-data-from-postgres-installed-with-airflow | postgresql, docker, airflow | 1,722,851,866 |
se_76970259 | stackoverflow | DATA_ENGINEERING | DAG files uploaded into AWS-MWAA-LOCAL aren't showing up on UI | DAG files uploaded into AWS-MWAA-LOCAL aren't showing up on UI
i have used this to run airflow locally : https://github.com/aws/aws-mwaa-local-runner
And havent made any major changes. When i tried uploading dag onto the file it isnt showing up on airflow UI.
Repo has provided with one example dag, and even that i... | https://stackoverflow.com/questions/76970259/dag-files-uploaded-into-aws-mwaa-local-arent-showing-up-on-ui | docker, airflow, docker-desktop, mwaa | 1,692,886,766 |
se_78842962 | stackoverflow | DATA_ENGINEERING | Airflow DAG throws GlueJobOperator is not JSON serializable | Airflow DAG throws GlueJobOperator is not JSON serializable
Below Airflow task throws an error:
[2024-08-07T09:05:00.142+0000] {{xcom.py:664}} ERROR - Object of type GlueJobOperator is not JSON serializable. If you are using pickle instead of JSON for XCom, then you need to enable pickle support for XCom in your airfl... | https://stackoverflow.com/questions/78842962/airflow-dag-throws-gluejoboperator-is-not-json-serializable | python, amazon-web-services, airflow, mwaa | 1,723,023,983 |
se_78332952 | stackoverflow | DATA_ENGINEERING | Airflow sensor which checks if GCS object was updated | Airflow sensor which checks if GCS object was updated
I would like to have a DAG which checks if avro file on GCS and if yes go to another task. This avro file comes to gcs under different names so i would like to use prefix to just get any avro file in the folder. I used code like this:
gcs_sensor = GCSObjectsWit... | https://stackoverflow.com/questions/78332952/airflow-sensor-which-checks-if-gcs-object-was-updated | python, google-cloud-platform, google-cloud-storage, airflow | 1,713,253,974 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.