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 集群和命名空间
可以使用 Amazon Redshift 控制台或 Amazon CLI 从 Amazon Glue Data Catalog 中注销预置集群或无服务器命名空间。从 Amazon Glue Data Catalog 中注销的数据仓库只会从 Amazon Glue Data Catalog 本身中移除。仓库仍然是您 Amazon Redshift 账户的一部分。此外,该目录仍保留在 Amazon Glue 中,必须手动移除。从 Amazon Glue 中移除目录时,也会移除与之关联的托管式工作组。
- Deregistering using the Amazon Redshift console
-
登录到 Amazon Web Services 管理控制台并打开 Amazon Redshift 控制台,网址:https://console.aws.amazon.com/redshiftv2/。
导航到要注销的无服务器命名空间或预置集群,然后将其选中。
在命名空间或集群的详细信息页面上,从操作下拉菜单中选择从 Amazon Glue Data Catalog 中注销。仅当您选择了已注册到 Amazon Glue Data Catalog 的数据仓库时,才会出现此选项。
输入拥有包含集群或命名空间的目录的账户 ID,然后选择注销。
- Deregistering using the Amazon CLI
-
要使用 Amazon CLI 从 Amazon Glue Data Catalog 注销集群或命名空间,请使用带有以下选项的 deregister-namespace 命令:
以下示例从账户 ID 012345678910 注销 mySampleNamespace 无服务器命名空间。
aws redshift deregister-namespace /
--namespace-identifier {ServerlessIdentifier: {NamespaceIdentifer: mySampleNamespace, WorkgroupIdentifier: mySampleWorkgroup}} /
--consumer-identifiers [012345678910]