从 Amazon Glue Data Catalog 中注销 - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

从 2025 年 11 月 1 日起,Amazon Redshift 将不再支持创建新的 Python UDF。如果您想要使用 Python UDF,请在该日期之前创建 UDF。现有的 Python UDF 将继续正常运行。有关更多信息,请参阅博客文章

从 Amazon Glue Data Catalog 中注销

注销 Amazon Redshift 联合身份验证权限的 IAM 策略要求

要从 Amazon Glue Data Catalog 中注销集群或 Serverless 命名空间,需要以下 IAM 权限。

对于 Redshift 预调配集群

  • redshift:ModifyLakehouseConfiguration

  • redshift:DregisterNamespace

对于 Redshift Serverless

  • redshift-serverless:UpdateLakehouseConfiguration

  • redshift:DregisterNamespace

对于 Amazon Glue Data Catalog 集成

  • glue:DeleteCatalog

  • glue:GetCatalog

对于 Lake Formation 资源注册

  • lakeformation:DeregisterResource

从 Amazon Glue Data Catalog 中注销 Redshift

CLI

您可以使用 modify-lakehouse-configuration 命令从 Amazon Glue Data Catalog 中注销集群,如果集群关联了 IdC 提供程序,这会在集群中将 IdC 提供程序置于禁用模式。

aws redshift modify-lakehouse-configuration \ --cluster-identifier 'redshift-cluster' \ --lakehouse-registration Deregister
Console
  1. 登录到 Amazon Web Services 管理控制台并打开 Amazon Redshift 控制台,网址:https://console.aws.amazon.com/redshiftv2/

  2. 导航到要注销的预调配集群,然后将其选中。

  3. 在集群的详细信息页面上,从操作下拉菜单中选择从 Amazon Glue Data Catalog 中注销,然后选择注销

从 Amazon Glue Data Catalog 中注销 Redshift Serverless 命名空间

CLI

您可以使用 update-lakehouse-configuration 命令从 Amazon Glue Data Catalog 中注销 Redshift Serverless 命名空间,如果集群关联了 IdC 提供程序,这会在集群中将 IdC 提供程序置于禁用模式。

aws redshift modify-lakehouse-configuration \ --cluster-identifier 'redshift-cluster' \ --lakehouse-registration Deregister
Console
  1. 登录到 Amazon Web Services 管理控制台并打开 Amazon Redshift 控制台,网址:https://console.aws.amazon.com/redshiftv2/

  2. 导航到要注销的 Serverless 命名空间,然后将其选中。

  3. 在集群的详细信息页面上,从操作下拉菜单中选择从 Amazon Glue Data Catalog 中注销,然后选择注销