Help Center > > User Guide> MRS Cluster Component Operation Guide> Using Hue> Using File Browser on the Hue Web UI

Using File Browser on the Hue Web UI

Updated at: Apr 28, 2020 GMT+08:00

Scenario

Users can use the Hue web UI to manage files in HDFS.

Prerequisites

When Kerberos authentication is enabled, the 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 web UI 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 Read, Write, 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 ZIP, TGZ, 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.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel