使用可选组件功能创建 Managed Service for Apache Spark 集群时,可以安装 Hive WebHCat 等其他组件。本页面介绍了 Hive WebHCat 组件。
Hive WebHCat 组件提供了 HCatalog REST API。集群的第一个主节点上的端口 50111 上提供了 REST 服务。
安装组件
在创建 Managed Service for Apache Spark 集群时安装该组件。 组件可添加到使用 Managed Service for Apache Spark 版本 1.3 及更高版本创建的集群中。
如需查看每个 Managed Service for Apache Spark 映像版本中包含的组件版本,请参阅支持的 Managed Service for Apache Spark 版本。
Google Cloud 控制台
- 在 Google Cloud 控制台中,打开创建集群页面。
- 点击其他配置以展开该部分。
- 修改可选组件。
- 在随即打开的面板中,选中 Hive WebHCat 的复选框,然后点击保存。
gcloud CLI
如需创建包含 Hive WebHCat 组件的 Managed Service for Apache Spark 集群,请使用带有 --optional-components 标志的 gcloud dataproc clusters create cluster-name 命令。
gcloud dataproc clusters create cluster-name \ --optional-components=HIVE_WEBHCAT \ --region=region \ ... other args