View the UI rendered by Apache Airflow web server running in a virtual machine

I know that when running airflow webserver

through your home terminal, you can view the interface by going to http: // localhost: 8080 . I can do it.

However, I have a virtual Amazon Lightsail instance that I ended up in. Then I go to virtual environment to run the command airflow webserver

. This succeeds, however I am unable to access the UI. I tried to enter the following addresses into my browser:

  • [ip address]: 8080
  • [ip address]
  • [ip address]: 80

And many others. Any idea how I am referring to the UI?

+3


source to share


1 answer


In the instance in AWS, by default, all external ports are closed and only port 22 is open (used for ssh), it is also possible to easily click "Allow Http and Https" which will open port 80 and 443, but from the web server the airflow is port 8080 by default, you will need to do the network settings for your instance and open the port where your airflow webserver is running.

It's really very simple:

Go to Settings "Network and Security" -> Security group in the left navigation hand

  • Find the security group that your instance is separate from
  • Click "Inbound Rules"
  • In the drop-down list, you must select "Custom TCP Rule".
  • Enter port (8080) in "port range"
  • Click "Apply" (add rule) and enjoy


enter image description here

you can specify the port you opened when running the airflow command.

airflow webserver -p 8080

      

+1


source







All Articles