

我们不再更新 Amazon Machine Learning 服务，也不再接受新用户使用该服务。本文档可供现有用户使用，但我们不会再对其进行更新。有关更多信息，请参阅[什么是 Amazon Machine Learning](https://docs.aws.amazon.com/machine-learning/latest/dg/what-is-amazon-machine-learning.html)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 根据 Amazon Redshift 中的数据创建 Amazon ML 数据源
<a name="using-amazon-redshift-with-amazon-ml"></a>

如果您有数据存储在 Amazon Redshift 中，可以使用 Amazon Machine Learning (Amazon ML) 控制台中的**创建数据源**向导创建数据源对象。利用 Amazon Redshift 数据创建数据源时，您可以指定包含您数据的集群和 SQL 查询来检索您的数据。Amazon ML 通过对集群调用 Amazon Redshift `Unload` 命令来执行查询。Amazon ML 将结果存储在您选择的 Amazon Simple Storage Service (Amazon S3) 位置，然后使用 Amazon S3 中存储的数据创建数据源。数据源、Amazon Redshift 集群和 S3 存储桶必须全部位于同一区域。

**注意**  
 Amazon ML 不支持利用私有 VPC 中的 Amazon Redshift 集群创建数据源。集群必须有公有 IP 地址。

**Topics**
+ [“Create Datasource”向导的必需参数](redshift-parameters.md)
+ [利用 Amazon Redshift 数据创建数据源（控制台）](create-datasource-from-redshift-procedure.md)
+ [Amazon Redshift 问题排查](troubleshooting.md)