tencent cloud


Hue Overview

Last updated: 2023-03-15 10:12:39

    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:

    1. 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.
    2. Find the Hue component on the list page and click WebUI URL to go to the Hue page.
    3. When logging in to the Hue console for the first time, use the hadoop account and the password set when you created the cluster.

      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

    1. Add a user.
      1. Log in to the EMR console and add a user on the User Management page.
      2. 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.
      3. Find the Hue component on the list page, click WebUI URL to go to the Hue page and log in to Hue.
    2. Perform permission control.
      You can assign different permissions to groups through Hue and add users to groups to get specific permissions.
      1. Click Groups at the top of the user management page and then click Add group on the right.
      2. 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.

    1. Import a local file.
      1. 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.
      2. Enter the table information and click Save.
    2. Import an HDFS file.
      1. Select a CSV file from HDFS.
      2. Enter the table information and click Save.
    3. Import an external database.
      1. Enter the external database information, click Test Connection to get the database information, select the database and table, and click Next.
      2. 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

    1. Click Tables on the right to enter the table management page and view the basic database information.
    2. Click a database to view the information of its tables.
    3. Click a table to view its details.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support