VS Code Notebook连接AWS Glue端点遇'TextPlain' KeyError求助
AWS Glue交互式会话VS Code Notebook报KeyError: 'TextPlain'问题求助
我们团队通过VS Code Notebook连接AWS Glue端点开展本地开发,今日早间三台未做任何更新的设备(覆盖Mac、Linux、Windows系统)突然在连接Glue端点时触发报错,但第四位配置完全一致的开发者却能正常使用。
已完成以下排查动作:
- 切换到
jupyter notebook搭配Glue PySpark内核可正常运行 - 尝试更新或重新安装Python及相关依赖包,问题未解决
- 在相关库中添加打印语句后发现
Data对象为空,若注释对应代码则无法查看Notebook输出
报错详情如下:
Trying to create a Glue session for the kernel. Worker Type: G.1X Number of Workers: 2 Session ID: 6f7ecef2-de6a-44fe-bbfc-bf8b1fa53ce5 Applying the following default arguments: --glue_kernel_version 0.35 --enable-glue-datacatalog true --additional-python-modules great-expectations==0.15.17 --conf spark.sql.legacy.parquet.int96RebaseModeInWrite=CORRECTED --conf spark.sql.legacy.parquet.int96RebaseModeInRead=CORRECTED --conf spark.sql.legacy.parquet.datetimeRebaseModeInRead=CORRECTED --enable-job-insights true Waiting for session 6f7ecef2-de6a-44fe-bbfc-bf8b1fa53ce5 to get into ready status... Session 6f7ecef2-de6a-44fe-bbfc-bf8b1fa53ce5 has been created Exception encountered while running statement: 'TextPlain' Traceback (most recent call last): File "/home/user/.local/lib/python3.10/site-packages/aws_glue_interactive_sessions_kernel/glue_pyspark/GlueKernel.py", line 163, in do_execute self._send_output(statement_output["Data"]["TextPlain"]) KeyError: 'TextPlain'
想问下有没有其他用户遇到过这个问题?
内容的提问来源于stack exchange,提问作者Sixsmith
相关产品推荐
相关产品推荐

