Using File Browser on the Hue Web UI
Scenario
Users can use the Hue web UI to manage files in HDFS in a cluster.
The Hue page is used to view and analyze data such as files and tables. Do not perform high-risk management operations such as deleting objects on the page. If an operation is required, you are advised to perform the operation on each component after confirming that the operation has no impact on services. For example, you can use the HDFS client to perform operations on HDFS files and use the Hive client to perform operations on Hive tables.
File Browser (File Browser)
- Access the Hue web UI.
- Click . The File Browser page is displayed.
You can view the home directory of the current login user.
On the File Browser page, the following information about subdirectories for 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
- In the search box, enter a keyword. The system automatically searches directories or files in the current directory.
- Clear the search criteria. The system displays all directories or files.
Performing Actions
- Click and select one or more directories or files.
- 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.
- 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 permissions.
- Sticky: indicates that only HDFS administrators, directory owners, and file owners can move files in the directory.
- Recursive: indicates that permission is granted to subdirectories recursively.
- Storage policies: indicates the policies for storing files or directories in HDFS.
- Summary: indicates that you can view HDFS storage information about the selected file or directory.
Accessing Other Directories
- 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.
- Click Home to go to the home directory.
- Click History. The history records of directory access are displayed and the directories can be accessed again.
- Click Trash to access the recycle bin of the current directory.
Click Empty Trash to clean up the recycle bin.
Uploading User Files
- Click and click Upload.
- 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 Select ZIP, TGZ or BZ2 files 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
- Click and click New.
- 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.
Storage Policy Definition and Usage
If the value of Hue parameter fs_defaultFS is set to viewfs://ClusterX, the big data storage policy cannot be enabled.
- Log in to MRS Manager.
- On MRS Manager, choose
.
- Set Role Name.
- Choose Configure Resource Permission > Hue, select Storage Policy Admin, and click OK to grant the storage policy administrator permission to the role.
- Choose System > Permission > Manage User Group > Create User Group, set Group Name, and click Select and Add Role next to Role. On the displayed page, select the created role and click OK to add the role to the group.
- Choose System > Permission > Manage User > Create User.
- Specify the Username of a user who can log in to the Hue web UI and has the Storage Policy Admin permission.
- Set User Type to Human-machine.
- Set Password and Confirm Password for logging in to the Hue web UI.
- Click Select and Join User Group next to User Group. On the page that is displayed, select the created user group, supergroup, hadoop, and hive, and click OK.
- Set Primary Group to hive.
- Click Select and Add Role on the right of Assign Rights by Role. On the Select snf page that is displayed, select the newly created role and the System_administrator role, and click OK.
- Click OK. The user is added successfully.
- Access the Hue web UI.
- Click in the upper right corner.
- Select the check box of the directory and click Action on the upper part of the page. Then select Storage policies.
- In the dialog box that is displayed, set a new storage policy and click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot