Using Hue

Prev Next

The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.

Available in VPC

The Hue component is available on NAVER Cloud Platform's Cloud Hadoop.
This guide explains the features of Hue on a Cloud Hadoop cluster and how to use the Hive editor and Hue browser in Hue.

Hue components

Hue (Hadoop User Experience) is a web-based user interface that works with Apache Hadoop clusters.
Bundled with other Hadoop ecosystems, Hue can be used to run Hive tasks and Spark jobs.

Hue on Cloud Hadoop clusters supports the following components:

  • Browser

    • Document: View workflows, queries, and script files saved in Hue.
    • File: View files saved in HDFS.
    • S3: View files saved in the object storage bucket.
    • Table: View tables saved in the Hive warehouse.
    • Job: View the status and logs of executed Oozie Jobs.
  • Editor

    • Hive: Run Hive queries.
    • Scala, PySpark: Run interactive commands like spark-shell.
    • Spark Submit Jar, Spark: Enables each jar and py file to be submitted as a Spark Job.
    • Java: Run jars through Oozie workflows.
    • Distcp: Run Distcp tasks through Oozie workflows.
    • Shell: Run .sh files through Oozie workflows.
    • MapReduce: Run the MapReduce application through Oozie workflows.
  • Scheduler

    • Workflow: Create Oozie workflows.
    • Reserve: Schedule created workflows.

Access Hue

Hue can be accessed in 2 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. For more information, see View by application

Connect using a domain

To access the Hue Web UI using a domain:

  1. From the NAVER Cloud Platform console's VPC environment, navigate to Services > Big Data & Analytics > Cloud Hadoop.
  2. Click on the cluster account, then on the cluster details interface, check the domain address.
    cloudhadoop-clusterlist-domein_ko
  3. In your web browser's address bar, enter the domain address and port number as follows, then access the Hue web page:
    https://{domain address}:8081
    
  4. Once the login page is displayed in the browser, enter the admin account and password set upon cluster creation to log in.
    • Resetting the cluster administrator account from the console will not reset Hue account information. You must change your password on the Hue web page.

Run Hive query

To run a Hive query:

  1. Launch the editor by clicking cloudhadoop-hue-icon > Hive (Hive UI) in the left menu bar.
  2. In the editing window, select the database on which you want to run the query from the list.
  3. Enter the query in the Query Editor window, then click [Run].
    • You can view the results of the query you ran in the [Results] tab.
    • You can check the list of queries you have run in the [Query history] tab.
      cloudhadoop-hue1_ko

View browser

Click the menu icon on the left side of the top menu bar, then select the desired browser from the browser component.

  • File browser
    • View HDFS files.
    • Base directory address of HDFS: hdfs://user/accountname
    • You can move by clicking in front of the account name or the root's slash.
    • [Create new]: Create a new file or directory.
    • [Upload]: Upload files to the current directory.
      cloudhadoop-hue2_ko
Note

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

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

    • View all buckets that can be certified with the user's API access key.
    • Base directory address of S3: s3a://bucketname
    • You can move by clicking the root's slash.
    • [Create new]: Create a new file or directory.
    • [Upload]: Upload files to the current directory.
      cloudhadoop-hue3_ko
  • Table browser

    • View databases and tables created in Hive.
      cloudhadoop-hue4_ko