Airflow cannot run cli commands

4/26/2018

I set up Airflow using Kubernetes and another standalone Postgres server. When I run airflow list_dags inside a container, i get sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "postgres" to address: Name or service not known.

Where can i check what connection that CLI is using?

-- prideloki
airflow
kubernetes

1 Answer

4/26/2018

It's because the container doesn't have AIRFLOW__CORE__SQL_ALCHEMY_CONN environment variable set up.

-- prideloki
Source: StackOverflow