Hive on Hue

Hue provides the Hive GUI management function so that users can query Hive data in GUI mode.

How to Use Query Editor

Access the Hue web UI. For details, see Accessing the Hue Web UI.

In the navigation tree on the left, click and choose Hive. The Hive page is displayed.

How to Use Metadata Browser

Access the Hue web UI. For details, see Accessing the Hue Web UI.

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.

Typical Scenarios

On the Hue page, create a Hive table as follows:

  1. Click at the upper left corner of Hue web UI and select the Hive instance to be operated to enter the Hive command execution page.
  2. Enter an HQL statement in the command input box, for example:

    create table hue_table(id int,name string,company string) row format delimited fields terminated by ',' stored as textfile;

    Click to execute the HQL statements.

  3. Enter the following command in the command input box:

    show tables;

    Click to view the created table hue_table in Result.