如何创建Dataproc集群,以便稍后可以SSH到工作节点?

huangapple go评论57阅读模式
英文:

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的防火墙规则:

如何创建Dataproc集群,以便稍后可以SSH到工作节点?

而且我已经将集群工作节点添加到目标标签中:

如何创建Dataproc集群,以便稍后可以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 :

如何创建Dataproc集群,以便稍后可以SSH到工作节点?

and I added the cluster workers in the target tags:

如何创建Dataproc集群,以便稍后可以SSH到工作节点?

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

huangapple
  • 本文由 发表于 2023年6月6日 05:58:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76410251.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定