设置项目
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
设置步骤
-
登录您的 Google Cloud 账号。如果您是 Google Cloud 新手,请创建一个账号来评估我们的产品在实际场景中的表现。新客户还可获享 $300 赠金,用于运行、测试和部署工作负载。
-
在 Google Cloud Console 中的项目选择器页面上,选择或创建一个 Google Cloud 项目。
转到“项目选择器”
-
确保您的 Google Cloud 项目已启用结算功能。
-
启用 Google Cloud Dataproc API。
启用 API
-
安装 Google Cloud CLI。
-
如需初始化 gcloud CLI,请运行以下命令:
gcloud init
-
在 Google Cloud Console 中的项目选择器页面上,选择或创建一个 Google Cloud 项目。
转到“项目选择器”
-
确保您的 Google Cloud 项目已启用结算功能。
-
启用 Google Cloud Dataproc API。
启用 API
-
安装 Google Cloud CLI。
-
如需初始化 gcloud CLI,请运行以下命令:
gcloud init
设置虚拟机(可选)
如果您计划从 Compute Engine 虚拟机 (VM) 实例运行 gcloud CLI,则必须设置该虚拟机,然后才能访问 Google Cloud 服务。
如需测试您的虚拟机是否设置正确,请从命令行运行 gcloud compute instances describe your-vm-instance-name
。必须列出包含 https://www.googleapis.com/auth/cloud-platform
范围的服务帐号。如果找不到该范围,请参阅更改实例的服务帐号和访问权限范围。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-04-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":"其他"
}]