airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Somasundaram Sekar <somasundar.se...@tigeranalytics.com>
Subject RE: Airflow configuration in environment variable not working
Date Thu, 09 Nov 2017 08:35:45 GMT
Below are the env variables configured

AIRFLOW__CORE__SQL_ALCHEMY_CONN=mysql://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
AIRFLOW__CELERY__BROKER_URL=redis://XXXXXXXXXXXXXXXXXXXX/1
AIRFLOW__CELERY__CELERY_RESULT_BACKEND=db+mysql://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
AIRFLOW__WEBSERVER__AUTHENTICATE=True
AIRFLOW__WEBSERVER__AUTH_BACKEND=airflow.contrib.auth.backends.google_auth
AIRFLOW__GOOGLE__CLIENT_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
AIRFLOW__GOOGLE__CLIENT_SECRET=XXXXXXXXXXXXXXXXXXxx
AIRFLOW__GOOGLE__OAUTH_CALLBACK_ROUTE=/
AIRFLOW__GOOGLE__DOMAIN=XXXXXXXXXXXXXXXXX

-----Original Message-----
From: Gerard Toonstra [mailto:gtoonstra@gmail.com]
Sent: Thursday, November 9, 2017 1:59 PM
To: dev@airflow.incubator.apache.org
Subject: Re: Airflow configuration in environment variable not working

What's the variable key you are using. Does it follow this convention?

https://airflow.apache.org/configuration.html

That's AIRFLOW (two underscores)  configuration section (two underscores)
env var.


G>


On Thu, Nov 9, 2017 at 8:30 AM, Somasundaram Sekar <
somasundar.sekar@tigeranalytics.com> wrote:

> I tried using ENV variable to configure connection urls, I have an ami
> that is preconfigured with alchemy_conn and broker_url etc, I have
> written environment variables to /etc/environment in the instances
> being spun up from the amis to override the properties in airflow.cfg
> file. I was able to access the variables from python code as well.
>
> But it doesn't seem to take effect while running ariflow, tried
> restarting the process as well but didn't work, it still points to the
> one in airflow.cfg file
>
> Any help appreciated.
>
> Regards,
>
> Somasundaram S
>

Mime
View raw message