如何为 Google 云 VM 集群查找 Web 界面端口
How to find Web Interface Port for Google Cloud VM cluster
我正在尝试在 Google Cloud Dataproc 集群上创建到 运行 Jupyter 的 SSH 隧道。
The tutorial 给出了以下用于创建隧道的模板。它说:
"Replace port1 with the Cloud Shell port you will use (8080 - 8084), and port2 with the Web interface port on the cluster master node."
gcloud compute ssh master-host-name \
--project=project-id --zone master-host-zone -- \
-4 -N -L port1:master-host-name:port2
我卡在端口 2 上。我查看了 VPC 设置、VM 设置等,但找不到任何 "web interface port"。有没有我应该看的具体地方?
您可能会发现这篇文章有帮助:
https://cloud.google.com/dataproc/docs/concepts/accessing/cluster-web-interfaces
您可能正在端口 8088
上寻找 Yarn 资源管理器。但是,如果您想深入了解您的应用程序(主节点上没有 运行),您可能会发现设置 SSH 隧道更容易使用:
gcloud compute ssh master-host-name ... -- -D 1080 -N
然后启动指向代理的浏览器:
/usr/bin/google-chrome \
--proxy-server="socks5://localhost:1080" \
--host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \
--user-data-dir=/tmp/master-host-name
您现在可以在浏览器的地址栏中输入 http://master-host-name:8088
。
我正在尝试在 Google Cloud Dataproc 集群上创建到 运行 Jupyter 的 SSH 隧道。
The tutorial 给出了以下用于创建隧道的模板。它说:
"Replace port1 with the Cloud Shell port you will use (8080 - 8084), and port2 with the Web interface port on the cluster master node."
gcloud compute ssh master-host-name \
--project=project-id --zone master-host-zone -- \
-4 -N -L port1:master-host-name:port2
我卡在端口 2 上。我查看了 VPC 设置、VM 设置等,但找不到任何 "web interface port"。有没有我应该看的具体地方?
您可能会发现这篇文章有帮助: https://cloud.google.com/dataproc/docs/concepts/accessing/cluster-web-interfaces
您可能正在端口 8088
上寻找 Yarn 资源管理器。但是,如果您想深入了解您的应用程序(主节点上没有 运行),您可能会发现设置 SSH 隧道更容易使用:
gcloud compute ssh master-host-name ... -- -D 1080 -N
然后启动指向代理的浏览器:
/usr/bin/google-chrome \
--proxy-server="socks5://localhost:1080" \
--host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \
--user-data-dir=/tmp/master-host-name
您现在可以在浏览器的地址栏中输入 http://master-host-name:8088
。