使用 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):2023-12-10。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]