git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Environment variables not working when using systemd




Hi guys,

 

I have recently setup Airflow on a new VM with system integration. I have added some environment variables in my bash_rc file for airflow user. Now when I try to run a BashOperator by first starting airflow using `airflow webserver -D` and `airflow scheduler -D` it seem to have access to that environment variables.

 

But if I use `systemctl start airflow-webserver`, and run the same operator, there is no output for the same environment variables.

 

And I am unable to figure out why is that the case.

 

Regards,

Kaxil



Kaxil Naik

Data Reply
2nd Floor, Nova South
160 Victoria Street, Westminster
London SW1E 5LB - UK

phone: +44 (0)20 7730 6000
k.naik@xxxxxxxxx
www.reply.com

 Data Reply