Repository navigation
airflow initdb with postgresql not able to create tables #15223
Answered
by
kameshbrao
kameshbrao
asked this question in
Q&A
|
Hi. Iam trying to setup Airflow on my Kubernetes cluster. Iam using the below versions. Airflow - 1.10.14 Below is my custom Docker file As you can see I have a set -x
airflow initdb && \
alembic upgrade heads && \
(airflow create_user --username airflow --lastname airflow --firstname jon --email airflow@apache.org --role Admin --password airflow || true) So when the Any help appreciated. Thanks, |
Answered by
kameshbrao
Apr 6, 2021
Replies: 1 comment
|
Ok this is solved now as mentioned in the Airflow documentation, I need to set the search_path in postgres to use a default schema as SQLALchemy has no way to know the default schema.
|
0 replies
Answer selected by
XD-DENG
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok this is solved now as mentioned in the Airflow documentation, I need to set the search_path in postgres to use a default schema as SQLALchemy has no way to know the default schema.
alter role root in database airflow set search_path to public,airflow;