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

Update the document for hadoop fs -stat

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.7.0
    • Component/s: documentation
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      In FileSystemShell.apt.vm,

      stat
      
         Usage: <<<hdfs dfs -stat URI [URI ...]>>>
      
         Returns the stat information on the path.
      

      Now -stat accepts the below formats.

      • %b: Size of file in blocks
      • %g: Group name of owner
      • %n: Filename
      • %o: Block size
      • %r: replication
      • %u: User name of owner
      • %y: UTC date as "yyyy-MM-dd HH:mm:ss"
      • %Y: Milliseconds since January 1, 1970 UTC

      They should be documented.

        Attachments

        1. HADOOP-11318-001.patch
          3 kB
          Akira Ajisaka
        2. HADOOP-11318-002.patch
          6 kB
          Akira Ajisaka
        3. HADOOP-11318-002.patch
          6 kB
          Akira Ajisaka
        4. HADOOP-11318-003.patch
          6 kB
          Akira Ajisaka

          Activity

            People

            • Assignee:
              aajisaka Akira Ajisaka
              Reporter:
              aajisaka Akira Ajisaka
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: