【发布时间】:2022-02-25 20:31:35
【问题描述】:
我的目录结构如下:bucket-name/training/file.hdf5
我尝试通过此代码单元在 sagemaker 笔记本实例中读取此文件:
bucket='bucket-name'
data_key = 'training/file.hdf5'
data_location = 's3://{}/{}'.format(bucket, data_key)
hf = h5py.File(data_location, 'r')
但它给了我错误:
Unable to open file (unable to open file: name = 's3://bucket-name/training/file.hdf5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
我也尝试过pd.read_hdf(data_location),但没有成功。
尝试从同一键将 csv 文件读入数据帧不会引发错误。
感谢任何帮助。谢谢
【问题讨论】:
标签: amazon-s3 hdf5 amazon-sagemaker