【问题标题】:Calling a stored procedure in Redshift from AWS Glue从 AWS Glue 调用 Redshift 中的存储过程
【发布时间】:2020-06-05 09:14:47
【问题描述】:

有没有比使用 Lambda/Boto 从 AWS Glue 调用 Redshift 中的存储过程更简单的方法? 我在 Glue 作业中设置了所有内容,并且需要从 Spark 脚本调用 Redshift 中的存储过程。我与 Glue 中的 Redshift 建立了联系。

这个问题没有答案:Calling stored procedure from aws Glue Script

请分享这方面的任何指导。 谢谢。

【问题讨论】:

    标签: amazon-web-services amazon-redshift aws-glue


    【解决方案1】:

    您可以使用 py4j 和 java jdbc 来做到这一点。最好的部分是您甚至不需要安装任何东西,因为 Glue 为许多受支持的数据库提供了 jdbc 连接器。 How to run arbitrary / DDL SQL statements or stored procedures using AWS Glue

    【讨论】:

      【解决方案2】:

      您可以将 pg8000 压缩为附加库,并使用它建立与 redshift 的连接,然后触发存储过程。

      无法从 spark jdbc 触发存储过程。

      【讨论】:

        猜你喜欢
        • 2022-01-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-09-19
        • 1970-01-01
        • 2018-01-30
        • 2018-09-19
        相关资源
        最近更新 更多