Hue is an open-source Apache Hadoop UI system that evolved from Cloudera Desktop, which Cloudera contributed to the Hadoop project of the Apache Software Foundation. Hue is implemented on the basis of Django, a Python web framework. By using Hue, you can interact with Hadoop clusters in the web-based console on a browser, such as manipulating HDFS data, running MapReduce jobs, executing Hive SQL statements, and browsing HBase databases.
Accessing Hue WebUI
To use the Hue component to manage workflows, log in to the Hue console first:
- Log in to the EMR console and click the ID/Name of the target cluster in the cluster list to go to the cluster details page. Then, click Cluster Service.
- Find the Hue component on the list page and click WebUI URL to go to the Hue page.
- When logging in to the Hue console for the first time, use the hadoop account and the password set when you created the cluster.
Note:
EMR-v2.5.0 and earlier, and EMR-v3.1.0 and earlier are not integrated with OpenLDAP. When you log in to the Hue console for the first time, you must use the root account for login and then create the hadoop account on the WebUI. This is because the default component account upon startup in EMR is hadoop and all subsequent jobs should be submitted by using the hadoop account. For more information about how to create a hadoop account, see the official document of [Hue](https://docs.gethue.com/administrator/administration/ user-management/).
Managing User Permissions
- Add a user.
- Log in to the EMR console and add a user on the User Management page.
- After adding a user, if you have deployed Ranger in your cluster, you must manually trigger the delivery of the configuration in
ranger-ugsync-site.xml
to restart the EnableUnixAuth service for user synchronization. For more information, see [User Management](https://www.tencentcloud.com /document/product/1026/43326). Then, you can go to the Ranger WebUI to set access permissions of the new user.
- Find the Hue component on the list page, click WebUI URL to go to the Hue page and log in to Hue.
- Perform permission control.
You can assign different permissions to groups through Hue and add users to groups to get specific permissions.
- Click Groups at the top of the user management page and then click Add group on the right.
- Enter the user group information, select the users to be added to the group, specify the permissions for the group, and click Add group.
Importing Data
Hue allows you to import data from a local file, HDFS file, external database, or manually.
- Import a local file.
- Click Choose file and select a CSV file. Hue will automatically recognize the delimiter and generate a preview. Click Next to import the file to a table.
- Enter the table information and click Save.
- Import an HDFS file.
- Select a CSV file from HDFS.
- Enter the table information and click Save.
- Import an external database.
- Enter the external database information, click Test Connection to get the database information, select the database and table, and click Next.
- Enter the information of the target table, click Libs, select the MySQL driver, and click Save.
Job Management
Click the Jobs tab on the right to enter the job management page. Then, click a job type tab at the top to view and manage jobs.
Table Management
- Click Tables on the right to enter the table management page and view the basic database information.
- Click a database to view the information of its tables.
- Click a table to view its details.
Was this page helpful?