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

HDFS configuration should accept friendly time units

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.0
    • None
    • datanode, namenode
    • None

    Description

      HDFS configuration keys that define time intervals use units inconsistently (Hours, seconds, milliseconds).

      Not all keys have the unit as part of their name. Related keys may use different units e.g. dfs.blockreport.intervalMsec accepts msec while dfs.blockreport.initialDelay accepts seconds. Milliseconds is rarely useful as a time unit which makes these values hard to parse when reading config files.

      We can either

      1. Let existing keys use friendly units e.g. 100ms, 60s, 5m, 1d, 6w etc. This can be done compatibly since there will be no conflict with existing valid configuration. If no suffix is specified just default to the current time unit.
      2. Just deprecate the existing keys and define new ones that accept friendly units.

      We continue to use fine-grained time units (usually ms) internally in code and also accept "ms" option for tests.

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              xiaobingo Xiaobing Zhou
              arp Arpit Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated: