简体   繁体   English

在使用GCP Compute Engine时无法查看Apache Airflow GUI

[英]Can't view Apache Airflow GUI on using GCP Compute Engine

As mentioned in the title, I would like to setup a fully working apache-airflow instance using GCP Compute Engine. 如标题中所述,我想使用GCP Compute Engine设置一个完全正常的apache-airflow实例。 I am currently unable to view the gui as I cannot connect to the http://:8080 or https://:8080 由于无法连接到http://:8080或https://:8080,我当前无法查看gui

Upon creation of the GCP Compute VM I have allowed both HTTP & HTTPS. 创建GCP Compute VM后,我同时允许HTTP和HTTPS。 I have also visited the Cloud Console Network section and created a firewall rule. 我还访问了Cloud Console Network部分,并创建了防火墙规则。

I am using a n1-standard-1 vm instance with Ubuntu 18.04 on the 'default' network. 我在“默认”网络上使用具有Ubuntu 18.04的n1-standard-1虚拟机实例。 For the firewall rule I have created it for the default network to allow tcp:8080 to be opened. 对于防火墙规则,我已经为默认网络创建了它,以允许打开tcp:8080。 Does the name and target have any impact? 名称和目标是否有影响?

I have been able to successfully get the 'airflow webserver' up and running. 我已经能够成功启动并运行“气流网络服务器”。 I have gone over many tutorials of setting up Airflow and have gone through complex and simple tutorials. 我已经阅读了许多有关设置Airflow的教程,并经历了复杂和简单的教程。 But all fail to mention at the end how to get the GUI working. 但是最后都没有提到如何使GUI正常工作。 I have been following this tutorial relatively closely: 我一直在密切关注本教程:

https://medium.com/grensesnittet/install-apache-airflow-on-a-google-cloud-platform-virtual-machine-f9a5b01b6c33 https://medium.com/grensesnittet/install-apache-airflow-on-a-google-cloud-platform-virtual-machine-f9a5b01b6c33

I then decided to dumb it down with the quick start of apache airflow to get it working with the sqllite db. 然后,我决定快速启动apache airflow,以使其与sqllite db配合使用。

Upon attempting to reach the http or https url (https://:8080) I get a 'this site cannot be reached' error. 尝试访问http或https URL(https://:8080)时,出现“无法访问此站点”错误。

Any help would be very much appreciated!! 任何帮助将不胜感激!

The solution ended up being the target in the firewall rule. 该解决方案最终成为防火墙规则中的目标。 I updated the firewall rule to target all instances in the network, then the GUI popped up. 我将防火墙规则更新为以网络中的所有实例为目标,然后弹出了GUI。 Problem solved. 问题解决了。 Keep in mind this is not a good long-term solution, but it does allow one to experiment. 请记住,这不是一个好的长期解决方案,但确实允许人们尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM