使用 SSH 连接到 Dataproc 集群
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以使用 Google Cloud 控制台或 Google Cloud CLI 在 Dataproc 集群节点上打开 SSH 会话。
控制台
- 在 Google Cloud 控制台中,前往虚拟机实例页面。
- 在虚拟机实例列表中,点击要连接的 Dataproc 虚拟机实例所在行中的 SSH。
此时会在节点的主目录中打开一个浏览器窗口。
Connected, host fingerprint: ssh-rsa ...
Linux cluster-1-m 3.16.0-0.bpo.4-amd64 ...
...
user@cluster-1-m:~$
Google Cloud CLI
在本地终端窗口或从 Cloud Shell 运行 gcloud compute ssh 命令,使用 SSH 连接到集群虚拟机节点。
gcloud compute ssh cluster-VM-name\
--zone=zone \
--project=project-id
示例(主节点的默认名称为集群名称后跟 -m
后缀):
gcloud compute ssh cluster-1-m \
--zone=us-central-1-a \
--project=my-project-id
...
Linux cluster-1-m 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6...
...
user@cluster-1-m:~$
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-01。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-01。"],[],[]]