文件夹不会在Amazon S3上删除 [英] Folder won't delete on Amazon S3
问题描述
我正在尝试删除由于MapReduce作业而创建的文件夹.存储桶中的其他文件也可以删除,但是不会删除该文件夹.当我尝试从控制台将其删除时,其状态旁边的进度栏将始终保持为0.已进行了多次尝试,包括两次注销/登录之间的操作.
I'm trying to delete a folder created as a result of a MapReduce job. Other files in the bucket delete just fine, but this folder won't delete. When I try to delete it from the console, the progress bar next to its status just stays at 0. Have made multiple attempts, including with logout/login in between.
推荐答案
首先, Amazon S3 实际上没有文件夹/目录的本地概念,而是一种仅由存储桶和对象/键组成的平面存储架构-大多数S3工具(包括如何指定与目录不匹配的对象到期前缀?有关此架构的更多详细信息,包括来自AWS的引号/引用文档.
First and foremost, Amazon S3 doesn't actually have a native concept of folders/directories, rather is a flat storage architecture comprised of buckets and objects/keys only - the directory style presentation seen in most tools for S3 (including the AWS Management Console itself) is based solely on convention, i.e. simulating a hierarchy for objects with identical prefixes - see my answer to How to specify an object expiration prefix that doesn't match the directory? for more details on this architecture, including quotes/references from the AWS documentation.
因此,您的问题可能源于使用不同惯例来模拟此层次结构的工具,例如,请参见AWS论坛中的以下答案:
Accordingly, your problem might stem from a tool using a different convention for simulating this hierarchy, see for example the following answers in the AWS forums:
-
Ivan Moiseev对相关问题的回答无法删除文件
,
AWS团队对? -这是许多工具(包括Hadoop)使用的约定,用于在S3中创建目录.主要需要它们来指定空目录.也许人们更喜欢一种更美观的方案,但是这些工具正是这样做的方式.
祝你好运!
这篇关于文件夹不会在Amazon S3上删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!