"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 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
发送反馈
Managed Service for Apache Spark 可选 Pig 组件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Apache Pig 可让您在 Managed Service for Apache Spark 上分析大型数据集。您可以在创建集群期间使用可选组件 功能安装此开源平台。
安装组件
在创建 Managed Service for Apache Spark 集群时安装组件。
Apache Pig 是 Managed Service for Apache Spark 2.3 及更高映像版本中的可选组件。
注意: Apache Pig 会自动安装在 Managed Service for Apache Spark 2.2 及更低版本的映像上。
如需了解最新 Managed Service for Apache Spark 映像版本中包含的组件版本,请参阅支持的 Managed Service for Apache Spark 版本 。
Google Cloud 控制台
在 Google Cloud 控制台中,打开创建集群 页面。
点击其他配置 以展开该部分。
修改可选组件 。
在打开的面板中,选中 Pig 复选框,然后点击保存 。
gcloud CLI
如需创建包含 Pig 组件的 Managed Service for Apache Spark 集群,请将 gcloud dataproc clusters create CLUSTER_NAME 命令与 --optional-components 标志结合使用(使用映像版本 2.3 或更高版本)。
gcloud dataproc clusters create CLUSTER_NAME \
--region=REGION \
--optional-components=PIG \
--image-version=2.3 \
... other flags
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-11-19。
需要向我们提供更多信息?
[[["易于理解","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-11-19。"],[],[]]