Using Hue from Scratch

Hue aggregates interfaces which interact with most Apache Hadoop components and enables you to use Hadoop components with ease on a web UI. You can operate components such as HDFS, Hive, HBase, Yarn, MapReduce, Oozie, and Spark SQL on the Hue web UI.

Prerequisites

You have installed Hue, and the Kerberos authentication cluster is in the running state.

Procedure

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

  2. In the navigation tree on the left, click the editor icon image1 and choose Hive.

  3. Select a Hive database from the Database drop-down list box. The default database is default.

    The system displays all available tables. You can enter a keyword of the table name to search for the desired table.

  4. Click the desired table name. All columns in the table are displayed.

  5. Enter the HiveQL statements in the area for editing.

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

  6. Click image2 to execute the HiveQL statements.

  7. In the command text box, enter show tables; and click image3. Check whether the hue_table table created in 5 exists in the Result.