英文:
How to create dataproc cluster so I can ssh into the workers later on?
问题
以前,每当我创建一个Dataproc集群时,我都可以SSH连接到驱动程序和工作节点。但现在,我不能这样做。我收到以下消息:
> 您的连接可能会失败。VM缺少允许从0.0.0.0/0的TCP入站流量进入端口22的防火墙规则。
我尝试访问VPC网络 > 防火墙,那里已经有一个允许SSH的防火墙规则:
而且我已经将集群工作节点添加到目标标签中:
我以前不需要这样做,工作节点可以轻松SSH连接
我如何SSH连接到Dataproc集群中的工作节点?我可以完全访问创建新集群,所以如果您可以建议我使用哪种配置来创建新集群以启用对工作节点的SSH连接,那将解决我的问题。
英文:
Earlier whenever I used to create a dataproc cluster I would be able to SSH into the drivers and workers both. Now, I cannot. I get:
>Your connection will probably fail. VM is missing the firewall rule allowing TCP ingress traffic from 0.0.0.0/0 on port 22.
I have tried going to the VPC networks > Firewall and there is a firewall rule already there allowing ssh with :
and I added the cluster workers in the target tags:
I never had to do this earlier and the workers were SSHed into without hassle
How can I ssh into the workers in the dataproc clusters? I have full access to create new clusters, so if you can suggest the configuration with which I can create the new cluster to enable SSH into the workers that should solve my problem as well
答案1
得分: 0
你首先需要编辑您想要通过gcloud控制台SSH访问的工作器,添加一个网络标签,然后将相同的网络标签添加到SSH VPC防火墙规则的目标中。
英文:
You don't add vm name to the target.
You first edit the worker you want to SSH into from the gcloud console > add a network tag > add the same network tag to the target of the ssh VPC firewall rule
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论