Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17585

Correct timestamp format in the docs for the touch command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.3.1, 3.4.0, 3.2.3
    • common
    • None
    • Reviewed

    Description

      The touch command was added by HADOOP-9214, but the usage instructions and docs have never aligned with the code.

      The code uses a timestamp format of:

       new SimpleDateFormat("yyyyMMdd:HHmmss");
      

      But the docs indicate it should be yyyyMMddHHmmss.

      While I believe the format in the docs is better, tools or applications may be relying on the old format now, so I suggest we simply update the docs and usage, and improve the error message if the wrong format is used.

      Attachments

        1. HADOOP-17585.002.patch
          5 kB
          Stephen O'Donnell
        2. HADOOP-17585.001.patch
          4 kB
          Stephen O'Donnell

        Activity

          People

            sodonnell Stephen O'Donnell
            sodonnell Stephen O'Donnell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: