python-3.x - AWS Glue Python Shell 与 Oracle cx_Oracle 的连接问题
问题描述
尝试在 AWS Glue 上使用 Python shell 脚本连接到 Oracle 数据库时,出现以下错误。
回溯(最后一次调用):文件“/tmp/glue-python-scripts-vr6vd3y0/patronage_report.py”,第 120 行,在 check_on_demand_data 文件“/tmp/glue-python-scripts-vr6vd3y0/patronage_report.py”,行436,在 db_oracle_connection cx_Oracle.DatabaseError: DPI-1047: 找不到 64 位 Oracle 客户端库:“libclntsh.so:无法打开共享对象文件:没有这样的文件或目录”
我已将以下库放在 s3 存储桶中,并在作业属性中指定了路径,但仍然是同样的问题。
cx_Oracle-8.1.0-cp36-cp36m-manylinux1_x86_64.whl, libclntsh.so
解决方案
推荐阅读
- gradle - How to add a dependency to build.gradle.kts for kotlin-multiplatform (kotlin 1.3.50)?
- mysql - sql get min of subgroup within group for each subgroup on 1 row
- c++ - 如何为 QLineSeries/QXYSeries 设置自定义点标签格式?
- javascript - 用 graalVM 替换 nashorn
- node.js - 将数组值附加到 csv
- windows - 获取域控制器中成员服务器中本地帐户的登录失败事件
- python - Fill pandas row based on iterator matching value in another table
- android - 如何更改android底部导航中特定项目的背景颜色?
- awk - AWK complains about number of fields when extracting variables
- java - How to use a custom functional interface with a method taking 2 arguments in an ArrayList?