无法连接 DMS 的 Redshift 目标

无法连接 DMS 的 Redshift 目标

我想将数据从 RDS 迁移到 Redshift。为此,我想使用 AWS DMS。我成功连接了源端的 RDS 实例 (postgres),但 Redshift 目标端出现了问题。

我填写了连接数据(用户名、密码、端口、服务器名称:redshift_endpoint:5439:db_name)。但是我遇到了错误:

Test Endpoint failed: Application-Status: 1020912, Application-Message: 
Cannot connect to Cloud server  Network error has occurred, Application-Detailed-Message:
 RetCode: SQL_ERROR  SqlState: 08S01 NativeError: 10
 Message: [unixODBC][Amazon][Amazon Redshift] (10) Error occurred while 
trying to connect: [SQLState 08S01] could not translate host name 
"some_path.redshift.amazonaws.com:5439" to address: Name or service not 
known   ODBC general error.

我做错了什么?

答案1

今天,在与同样的问题斗争了一段时间后,我发现不需要:5439在连接服务器名称字段中添加主机名。

只需添加主机名,如some_path.redshift.amazonaws.com端点的服务器名称字段中所示

这应该可以解决你的问题。

相关内容