Search Files and Manage Directories

The Search Files and Manage Directories page provides a file browser function that lets you browse the HDFS namespace, as well as letting you manage your files and directories.

File and Disk Space Quotas

You can set quotas for file count and disk space per directory:

  1. From the Reports page, click Search Files and Manage Directories for the namespace you want to manage.
  2. Browse the file system to find the directory for which you want to set quotas.
  3. Click the Manage Quota button at the right of the row for the directory you want. A Manage Quota pop-up appears, where you can set file count or disk space limits for the directory you have selected.
  4. When you have set the limits you want, click OK

Searching within the File System

The Search Files and Manage Directories page lets you search the file system using predefined search criteria. The default is Search by Name but you can also search for large files, directories with quotas, watched directories, or custom search criteria which you can construct using criteria such as filename, owner, file size and so on.

To search the file system:

  1. From the Reports page, click Search Files and Manage Directories for the namespace you want to search.
  2. In the Search menu at the top right of the page, select the type of query you want to use. Depending on what you select, you may be presented with different fields to fill in, or different views of the file system. For example, selecting Search by Name will show a field where you can enter the name. Selecting Large Files will provide fields where you provide size to be used as the search criteria. If you select Custom... and enter multiple criteria, all of them must be met for a file to be considered a match.
  3. Click the Search button (images/image59.png) to execute the search.

If you search within a directory, only files within that directory will be found, so if you're browsing /user and do a search, you might find /user/foo/file, but you will not find /bar/baz.

Watched Directories

Search Files and Manage Directories lets you designate the HDFS directories that you want watch for inclusion in the Directory-based usage reports (Current Disk Usage By Directory and Historical Disk Usage By Directory).

To add or remove directories from the Directory-based usage reports:

  1. From the main page of the Report tab, click the Search Files and Manage Directories button at the upper right of the page  or From either of the Directory-based reports, click the Search Files and Manage Directories button.
  2. Click the Star icon (images/image67.png) at the left of the directories you want to include. The icon changes to the activated form (images/image68.png). You can navigate through the file system to see the directory you want to add — you can include a directory at any level without needing to include its parent.
  3. To remove a directory from the list, just deactivate the Star icon.