Last active
          March 9, 2022 09:31 
        
      - 
      
 - 
        
Save ibrezm1/6e8b0248d0e16abc97833a2b7289be2b to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | https://travelandtech.net/technology/tutorials/gcp/how-to-install-apache-airflow-on-gcp-ubuntu-instance-with-sequential-executor/ | |
| sudo su - | |
| apt update | |
| apt upgrade | |
| adduser airflow | |
| usermod -aG sudo airflow | |
| su - airflow | |
| sudo apt install -y python3-pip | |
| sudo apt install -y python3-dev | |
| sudo apt install -y build-essential | |
| sudo apt install -y libssl-dev | |
| export SLUGIFY_USES_TEXT_UNIDECODE=yes | |
| pip3 install apache-airflow[postgres,gcp] | |
| airflow initdb | |
| ls | |
| pwd | |
| cd /home/airflow/.local/bin/ | |
| ls | |
| airflow initdb | |
| chmod +x airflow | |
| ./airflow db init | |
| airflow users create --role Admin --username admin --email admin --firstname admin --lastname admin --password admin | |
| ./airflow webserver --port 8080 | |
| # Second instance | |
| cd /home/airflow/.local/bin/ | |
| airflow scheduler | |
| # http://104.198.204.165:8080/tree?dag_id=example_branch_labels | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment