[英]How to connect AWS Glue with Document DB
Do anyone aware how to connect Glue with Document DB?有谁知道如何将 Glue 与 Document DB 连接起来?
Unfortunately the AWS blog [https://aws.amazon.com/blogs/big-data/building-aws-glue-spark-etl-jobs-using-amazon-documentdb-with-mongodb-compatibility-and-mongodb/] i followed is not working as expected.不幸的是,AWS 博客 [https://aws.amazon.com/blogs/big-data/building-aws-glue-spark-etl-jobs-using-amazon-documentdb-with-mongodb-compatibility-and-mongodb/]我跟着没有按预期工作。
Steps i followed我遵循的步骤
Error - An error occurred while calling o92.getDynamicFrame.错误 - 调用 o92.getDynamicFrame 时发生错误。 Timed out after 30000 ms while waiting to connect.等待连接时 30000 毫秒后超时。 Client view of cluster state is {type=UNKNOWN, servers=[{address=<cluster>:<port>, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.SocketTimeoutException: connect timed out}}]集群 state 的客户端视图是 {type=UNKNOWN, servers=[{address=<cluster>:<port>, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by { java.net.SocketTimeoutException:连接超时}}]
I figured it out.我想到了。 Since this job was created using Spark script editor, DB connection needs to be in place.由于此作业是使用 Spark 脚本编辑器创建的,因此需要建立数据库连接。 Open the Job Script, go to Job Details tab click advanced properties and selected the Doc Db connection from the drop down and it worked.打开 Job Script,go 到 Job Details 选项卡,单击高级属性并从下拉列表中选择 Doc Db 连接,它工作了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.