

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://www.amazonaws.cn/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# 将集群注册到 Amazon Glue Data Catalog
<a name="register-cluster"></a>

您可以将整个集群注册到 Amazon Glue Data Catalog 并创建由 Amazon Glue 管理的目录。您可以使用任何支持 Apache Iceberg REST API 的 SQL 引擎访问这些目录。有关从 Amazon Redshift 创建与 Apache Iceberg 兼容的目录的更多信息，请参阅《Amazon Redshift 数据库开发人员指南》中的 [Apache Iceberg compatibility for Amazon Redshift](https://docs.amazonaws.cn/redshift/latest/dg/iceberg-integration_overview.html)。

**将集群注册到 Amazon Glue Data Catalog**

1. 登录到 Amazon Web Services 管理控制台并打开 Amazon Redshift 控制台，网址：[https://console.aws.amazon.com/redshiftv2/](https://console.amazonaws.cn/redshiftv2/)。

1. 在导航菜单上，选择**集群**。列出您的账户在当前 Amazon Web Services 区域 区域中的集群。列表中的各个列中显示了每个集群的一部分属性。如果您没有集群，请选择**创建集群**来创建一个集群。

1. 选择要注册的集群的名称。

1.  从**操作**中，选择**注册到 Amazon Glue Data Catalog**。将显示**注册到 Amazon Glue Data Catalog** 弹出框。

1. 在**目标账户 ID** 下输入要向其注册集群的 Amazon 账户 ID。这是将目录保存在 Amazon Glue Data Catalog 中的账户 ID。

1.  在**将命名空间注册为**下输入名称。这将是 Data Catalog 中集群的名称。

1.  选择**注册**。您将进入 Amazon Lake Formation 控制台。

1.  按照在 Amazon Lake Formation 中创建目录的过程进行操作。有关创建目录的信息，请参阅《Amazon Lake Formation 开发人员指南》中的 [Bringing Amazon Redshift data into the Amazon Glue Data Catalog](https://docs.amazonaws.cn/lake-formation/latest/dg/managing-namespaces-datacatalog.html)。