Using HUE
    • PDF

    Using HUE

    • PDF

    Article Summary

    Available in VPC

    The HUE component is available in Cloud Hadoop on NAVER Cloud Platform.
    This guide describes the HUE features in Cloud Hadoop clusters, and how to use Hive Editor and HUE browser in Hue.

    HUE components

    HUE(Hadoop User Experience) is the web-based user interface used with Apache Hadoop clusters.
    HUE is grouped with other Hadoop ecosystems for running Hive and Spark jobs.

    Cloud Hadoop Cluster's HUE supports the following components:

    • Browser

      • Document: Shows workflows, queries, and script files saved in HUE.
      • File: Shows files saved in HDFS.
      • S3: Shows files stored to Object Storage buckets.
      • Table: Shows tables saved in Hive Warehouse.
      • Job: Shows the status and logs of Oozie jobs that have been run.
    • Editor

      • Hive: Runs Hive queries.
      • Scala, PySpark: Runs interactive statements like spark-shell.
      • Spark Submit Jar, Spark: Submits .jar and .py files as a Spark job.
      • Java: Executes .jar files via an Oozie workflow.
      • Distcp: Runs Distcp jobs via an Oozie workflow.
      • Shell: Executes .sh files via an Oozie workflow.
      • MapReduce: Runs MapReduce applications via an Oozie workflow.
    • Scheduler

      • Workflow: Creates an Oozie workflow.
      • Reservation: Schedules the created workflows.

    HUE access

    By default, HUE is installed in Core Hadoop and Spark Type, and it can be accessed in the following two ways.

    Connect via the console's web UI list

    You can access the HUE web UI through View by application on the Cloud Hadoop console. Please refer to View by application for more information.

    Connect via domain

    You can access the HUE web UI via domain as follows.

    1. Please connect to the NAVER Cloud Platform console.
    2. Click VPC from the Platform menu to switch to the VPC environment.
    3. Click Services > Big Data & Analytics > Cloud Hadoop menus, in that order.
    4. Click the cluster item to view, and then check the domain address in Domain in the displayed details page.
      cloudhadoop-clusterlist-vpc-domein_en
    5. Enter the domain address and port number in the web browser address field as follows, and then access the Hue web page.
      https://{domain address}:8081
      
    6. Once the login page is displayed in the browser, enter the admin account and password set upon cluster creation to log in.
      • Initializing the cluster admin account in the console doesn't initialize the HUE password. The password must be changed in the HUE webpage.

    Execute Hive query

    Here's how to run an Hive query.

    1. Launch the editor by clicking cloudhadoop-hue-icon > Hive UI in the left menu bar.
    2. Select a database to execute the query from the list in the editor window.
    3. Enter the query in the query editor window, and then click the [Run] button.
      • The query results are displayed in the [Results] tab.
      • You can check the list of queries executed in the [Query history] tab.
        cloudhadoop-hue1_en

    View browser

    Click the menu icon on the left at the top menu bar, and then click the browser you want in the browser area.

    • File browser
      • View HDFS files
      • The default directory address for HDFS: hdfs://user/account name
      • You can navigate to another directory by clicking in front of the account name or the root slash
      • [Create new]: Create a new file or directory
      • [Upload]: Upload file to the current directory
        cloudhadoop-hue2_en
    Note

    If the Unauthorized connection for super-user: root error occurs, edit the value below to * in Ambari UI > HDFS > CONFIGS > ADVANCED > Custom core-site and restart the service.

    • hadoop.proxyuser.root.groups
    • hadoop.proxyuser.root.hosts
    • S3 browser

      • View all buckets that can be authenticated with the user's API access key
      • S3's default directory address: s3a://bucket name
      • You can navigate by clicking the root slash
      • [Create new]: Create a new file or directory
      • [Upload]: Upload file to the current directory
        cloudhadoop-hue3_en
    • Table browser

      • View databases and tables created in Hive
        cloudhadoop-hue4_en

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.