• MapReduce Service

mrs
  1. Help Center
  2. MapReduce Service
  3. User Guide
  4. Using MRS
  5. Using Hue
  6. Using File Browser on the Hue WebUI

Using File Browser on the Hue WebUI

Scenario

After Kerberos authentication is enabled for an MRS cluster, users can use the Hue WebUI to manage files in HDFS.

Prerequisites

An MRS cluster administrator has granted users with permission to view, create, modify, and delete files in HDFS. For details, see Creating a User.

Accessing File Browser

  1. Access the Hue WebUI and click File Browser.
  2. You can view the home directory of the current login user.

    On the File Browser page, the following information about subdirectories or files in the directory is displayed.

    Table 1 HDFS file attributes

    Attribute

    Description

    Name

    Name of a directory or file

    Size

    File size

    User

    Owner of a directory or file

    Group

    Group of a directory or file

    Permissions

    Permission of a directory or file

    Date

    Time when a directory or file is created

  3. In the search box, enter a keyword. The system automatically searches directories or files in the current directory.
  4. Clear the search box. The system displays all directories or files.

Performing Operations

  1. On File Browser, select one or more directories or files.
  2. Click Actions. On the menu that is displayed, select an operation.

    • Rename: renames a directory or file.
    • Move: moves a file. In Move to, select a new directory and click Move.
    • Copy: copies the selected files or directories.
    • Download: downloads the selected files. Directories are not supported.
    • Change permissions: changes permission to access the selected directory or file.
      • You can grant the owner, the group, or other users with the ReadWrite, and Execute permission.
      • Sticky indicates that only HDFS administrators, directory owners, and file owners can delete or move files in the directory.
      • Recursive indicates that permission is granted to subdirectories recursively.
    • Storage policies: sets the policies for storing files or directories in HDFS.
    • Summary: views HDFS storage information about the selected file or directory.

Deleting Directories or Files

  1. On File Browser, select one or more directories or files.
  2. Click Move to trash. In Confirm Delete, click Yes to move them to the recycle bin.

    If you want to directly delete the files without moving them to the recycle bin, click  and select Delete forever. In Confirm Delete, click Yes to confirm the operation.

Accessing Other Directories

  1. Click the directory name, type a full path you want to access, for example, /mr-history/tmp, and press Enter.

    The current user must have permission to access other directories.

  2. Click Home to go to the home directory.
  3. Click History. The history records of directory access are displayed and the directories can be accessed again.
  4. Click Trash to access the recycle bin of the current directory.

    Click Empty trash to clean up the recycle bin.

Uploading User Files

  1. On File Browser, click Upload.
  2. Select an operation.

    • Files: uploads user files to the current user.
    • Zip/Tgz/Bz2 file: uploads a compressed file. In the dialog box that is displayed, click Zip, Tgz or Bz2 file to select the compressed file to be uploaded. The system automatically decompresses the file in HDFS. Compressed files in ZIPTGZ, and BZ2 formats are supported.

Creating a New File or Directory

  1. On File Browser, click New.
  2. Select an operation.

    • File: creates a file. Enter a file name and click Create.
    • Directory: creates a directory. Enter a directory name and click Create.