今天忙里抽闲,看了一点hadoop的源码,偶然间看到了HDFS的目录字符数量限制和目录的级数限制。远远超过我的预期,没想到设置的这么大。如下:
// We need to limit the length and depth of a path in the filesystem. HADOOP-438
// Currently we set the maximum length to 8k characters and the maximum depth to 1k.public static int MAX_PATH_LENGTH = 8000;
public static int MAX_PATH_DEPTH = 1000;
本文介绍了Hadoop HDFS中对于文件路径长度及深度的具体限制,最大路径长度为8000字符,最大深度为1000级。这些设置旨在确保文件系统的稳定性和效率。
3461

被折叠的 条评论
为什么被折叠?



