Reputation: 2678
I installed airflow on linux server using: sudo pip3 install apache-airflow
. It got installed successfully.
Then I did: export AIRFLOW_HOME=~/airflow
. Finally I ran sudo airflow initdb
, it's giving me an error:
sudo: airflow: command not found
echo $PATH
prints something like this:
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/xyz/abc/.local/bin:/home/xyz/abc/bin
I went through these posts:
Getting bash: airflow: command not found
But, couldn't find any solution that would solve my problem. Don't know what I'm missing. Any help regarding this would be appreciated..
Upvotes: 0
Views: 2276
Reputation: 7815
It looks like the execution bit was not set for the airflow binary. Run sudo chmod 775 /usr/local/bin/airflow
to fix this.
Upvotes: 1