今天忙里抽闲,看了一点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;