【发布时间】:2021-08-11 08:18:18
【问题描述】:
我正在使用 s3 的 api 网关代理来读取羽毛文件。下面是我使用的最简单的代码形式。
import pandas as pd
s3_data=pd.read_feather('https://<api_gateway>/<bucket_name/data.feather>')
这给出了一个错误 -
reader = _feather.FeatherReader(source, use_memory_map=memory_map)
File "pyarrow\_feather.pyx", line 75, in pyarrow._feather.FeatherReader.__cinit__
File "pyarrow\error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow\error.pxi", line 114, in pyarrow.lib.check_status
OSError: Verification of flatbuffer-encoded Footer failed.
如果我将羽毛文件保存在本地并像下面这样阅读,一切正常。
s3_data=pd.read_feather("file://localhost//C://Users//<Username>//Desktop//data.feather")
我该如何进行这项工作?
【问题讨论】:
标签: python amazon-web-services amazon-s3 feather