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

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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change
    • Release Note:
      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_20080229.patch
          27 kB
          Tsz Wo Nicholas Sze
        2. 2219_20080227.patch
          27 kB
          Tsz Wo Nicholas Sze
        3. 2219_20080226.patch
          25 kB
          Tsz Wo Nicholas Sze

          Activity

            People

            • Assignee:
              szetszwo Tsz Wo Nicholas Sze
              Reporter:
              knoguchi Koji Noguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: