Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-161

DataNode will create missing dfs.data.dir directories contrary to docs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • datanode, documentation

    Description

      The documentation (and HADOOP-340) seems to indicate that if a data dir listed in dfs.data.dir does not exist, it will be ignored. In fact, if the hadoop user has access to (essentially) mkdir -p the data dir it will do so.

      I'd like to add another configuration parameter, perhaps dfs.data.dir.create with default true (to not break any existing tutorials). If this is set to false then data dirs that do not exist will not implicitly be created.

      The motivation for this is the same as HADOOP-340 - we have different disk configs in our cluster and hadoop is creating data dirs where we do not want them.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tlipcon Todd Lipcon
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: