Hadoop中HDFS目录字符长度和目录级数限制

来源:互联网 发布:dbc数据库是什么 编辑:程序博客网 时间:2024/06/05 09:43

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



原创粉丝点击