【发布时间】:2016-08-23 14:53:50
【问题描述】:
刚开始使用 Amazon S3。尝试使用简单的 java 方法从 Amazon S3 访问文件时出现以下错误。
2016-08-23 09:46:48 INFO request:450 - Received successful response:200, AWS Request ID: F5EA01DB74D0D0F5
Caught an AmazonClientException, which means the client encountered an
internal error while trying to communicate with S3, such as not being
able to access the network.
Error Message: Unable to store object contents to disk: Read timed out
昨天的确切代码行有效。我能够在 12 分钟内下载 100% 的 5GB 文件。今天我在一个更好的连接环境中,但只下载了 2% 或 3% 的文件,然后程序就失败了。
我用来下载的代码。
s3Client.getObject(new GetObjectRequest("mybucket", file.getKey()), localFile);
【问题讨论】:
标签: amazon-s3