"Managed Service for Apache Spark" is the new name for the product formerly known as "Dataproc on Compute Engine" (cluster deployment) and "Google Cloud Serverless for Apache Spark" (serverless deployment).
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
发送反馈
使用 SSH 连接到集群
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以使用控制台或 Google Cloud CLI 在 Managed Service for Apache Spark 集群节点上打开 SSH 会话
。 Google Cloud
如需了解如何与集群主服务器上运行的网页界面建立连接,请参阅
集群网页界面
。
控制台
在 Google Cloud 控制台中,前往
虚拟机实例 页面。
在虚拟机实例列表中,点击要连接的
Managed Service for Apache Spark 虚拟机实例所在行中的 SSH 。
此时会打开一个浏览器窗口,并显示节点上的主目录。
Connected, host fingerprint: ssh-rsa ...
Linux cluster-1-m 3.16.0-0.bpo.4-amd64 ...
...
user@cluster-1-m:~$
您还可以从 Google Cloud 控制台中的 Managed Service for Apache Spark
集群详情 页面上的虚拟机实例 标签页,使用 SSH 连接到 Managed Service for Apache Spark
集群节点。
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):2026-06-03。
需要向我们提供更多信息?
[[["易于理解","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):2026-06-03。"],[],[]]