Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View UI interface generated by Apache Airflow webserver running on virtual machine

I know that when you run airflow webserver via your home terminal, you can view the UI interface by going to http://localhost:8080. I am able to do this.

However, I have a virtual Amazon Lightsail instance which I ssh into. I then jump into a virtual environment from there to run the airflow webserver command. This executes successfully, however I cannot thereafter access the UI interface. I've tried entering the following addresses into my browser:

  1. [ip address]:8080
  2. [ip address]
  3. [ip address]:80

And a multitude of others. Any idea how I go about accessing the UI interface?

like image 267
nerves Avatar asked May 12 '17 19:05

nerves


People also ask

How do I check my UI airflow?

To access your Apache Airflow UIOpen the Environments page on the Amazon MWAA console. Choose an environment. Choose Open Airflow UI.

How do I access the airflow server?

To access the Airflow web interface from the Google Cloud console: In the Google Cloud console, go to the Environments page. In the Airflow webserver column, follow the Airflow link for your environment. Log in with the Google account that has the appropriate permissions.

How do I know if my airflow is running?

To check the health status of your Airflow instance, you can simply access the endpoint /health . It will return a JSON object in which a high-level glance is provided. Please keep in mind that the HTTP response code of /health endpoint should not be used to determine the health status of the application.


1 Answers

On an instance in AWS by default all external ports are closed and only port 22 is open (used for ssh), also there may be option to easily click Allow Http and Https which would open port 80 and 443 but since airflow webserver runs on port 8080 by default you would have to go in network setting of your instance and open port on which your airflow webserver is running.

This is actually really easy:

Go to the "Network & Security" -> Security Group settings in the left hand navigation

  • Find the Security Group that your instance is apart of
  • Click on Inbound Rules
  • You have to choose "Custom TCP rule" in the dropdown.
  • Type the port (8080) in "port range"
  • Click Apply(add rule) and enjoy

enter image description here

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

airflow webserver -p 8080
like image 182
Nitesh Singh Avatar answered Oct 16 '22 08:10

Nitesh Singh