aws rds/mysql aws-glue python shell 作业的安全组
aws rds/mysql security group for aws-glue python shell jobs
我在 aws-glue 中有一个 Python shell 作业,它与 rds/mysql 服务器通信。当 运行 作业在下面说时,我收到错误消息。我猜这是 mysql 服务器的安全组设置。如何更新 SG 以允许来自 aws-glue 作业的连接?
mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL
server on xxxxx.rds.amazonws.com:3306
我在代码中使用 python mysql-mysql-连接器与 mysql 服务器通信
conn = connector.connect(user='dustin', password='sun',
host='xxxx.us-east-1.rds.amazonaws.com',
database='mydb')
cursor = conn.cursor(dictionary=True)
cursor.execute(sql)
看起来您需要修改安全组以便从 Glue 接受连接 job.As您没有在您的问题中提及您的安全组很难说出可能是什么问题。因此,请参考 this link 并确保正确配置它们。
我在 aws-glue 中有一个 Python shell 作业,它与 rds/mysql 服务器通信。当 运行 作业在下面说时,我收到错误消息。我猜这是 mysql 服务器的安全组设置。如何更新 SG 以允许来自 aws-glue 作业的连接?
mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on xxxxx.rds.amazonws.com:3306
我在代码中使用 python mysql-mysql-连接器与 mysql 服务器通信
conn = connector.connect(user='dustin', password='sun',
host='xxxx.us-east-1.rds.amazonaws.com',
database='mydb')
cursor = conn.cursor(dictionary=True)
cursor.execute(sql)
看起来您需要修改安全组以便从 Glue 接受连接 job.As您没有在您的问题中提及您的安全组很难说出可能是什么问题。因此,请参考 this link 并确保正确配置它们。