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

help of stat is confusing

    XMLWordPrintableJSON

Details

    Description

      %b is actually printing the size of a file in bytes, while in help it says filesize in blocks.

      hdfs dfs -help stat
      -stat [format] <path> ... :
        Print statistics about the file/directory at <path>
        in the specified format. Format accepts filesize in
        blocks (%b)
      ...
      

      Attachments

        1. HADOOP-13233.001.patch
          2 kB
          Attila Bukor
        2. HADOOP-13233.002.patch
          3 kB
          Attila Bukor

        Activity

          People

            abukor Attila Bukor
            xilan-rabbit Xiaohe Lan
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: