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

du like command to count number of files under a given directory

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • None
    • None
    • Incompatible change
    • Hide
      Added a new fs command fs -count for counting the number of bytes, files and directories under a given path.

      Added a new RPC getContentSummary(String path) to ClientProtocol.
      Show
      Added a new fs command fs -count for counting the number of bytes, files and directories under a given path. Added a new RPC getContentSummary(String path) to ClientProtocol.

    Description

      To keep the total number of files on dfs low, we like the users to be able to easily find out how many files each of their directory contain.

      Currently, we only have fsck or dfs -lsr which takes time.

      Can I ask for an option for du to show the total number of files (as well as the total size) of a given directory?

      Attachments

        1. 2219_20080226.patch
          25 kB
          Tsz-wo Sze
        2. 2219_20080227.patch
          27 kB
          Tsz-wo Sze
        3. 2219_20080229.patch
          27 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            knoguchi Koji Noguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: