【发布时间】:2021-10-22 04:07:38
【问题描述】:
我想使用我将在 AWS Glue 上执行的 python 脚本连接到 Microsoft SQL Server。我在安全配置->脚本库->作业参数(可选)部分添加了 JOb 参数,如下所示:
Key : --additional-python-modules
Value: pyodbc==4.0.32,s3://bucketname/python_scripts/python-libs/pyodbc-4.0.32-cp37-cp37m-win32.whl
当我执行作业时出现以下错误:
com.amazonaws.services.glue.PythonModuleInstaller [main] ERROR: pyodbc-4.0.32-cp37-cp37m-win32.whl is not a supported wheel on this platform.
我也试过 python2 和 python3 轮子,但同样的错误!
【问题讨论】:
-
您使用的是 Python Shell Glue 作业还是 Spark 作业?
-
它是一个运行 python 程序的 spark 作业。
标签: pyodbc aws-glue aws-glue-connection