The Metastore Manager application enables you to manage the databases, tables, and partitions of the Hive metastore shared by the (Beeswax and Cloudera Impala Query UI) applications. You can use Metastore Manager to perform the following operations:
Databases
Tables
Metastore Manager is one of the applications installed as part of Hue. For information about installing and configuring Hue, see the Hue Installation manual.
Click the Metastore Manager icon
(
) in the navigation bar at
the top of the Hue browser page.
Note: You must be a superuser to perform
this task.
. The Quick Start Wizard
opens.If you want to import your own data instead of installing the sample tables, follow the procedure in Creating Tables.
.Click Create a new database.
Do one of the following:
Click the Create Database button.
.
Drop button.Although you can create tables by executing the appropriate Hive HQL DDL query commands, it is easier to create a table using the Metastore Manager table creation wizard.
There are two ways to create a table: from a file or manually. If you create a table from a file, the format of the data in the file will determine some of the properties of the table, such as the record and file formats. The data from the file you specify is imported automatically upon table creation. When you create a file manually, you specify all the properties of the table, and then execute the resulting query to actually create the table. You then import data into the table as an additional step.
From a File
Follow the instructions in the wizard to create the table. The basic steps are:
Click Create Table to create the table. The new table's metadata displays on the right side of the Table Metadata window. At this point, you can view the metadata or a sample of the data in the table. From the ACTIONS pane you can import new data into the table, browse the table, drop it, or go to the File Browser to see the location of the data.
Manually
Follow the instructions in the wizard to create the table. The basic steps are:
Click Create table. The Table Metadata window displays.
To browse table data:
In the Table List window, check the checkbox next to a table name and click Browse Data. The table's data displays in the Query Results window.
To browse table metadata:
Do one of the following:
Check the checkbox next to a table name and click View.
The table's metadata displays in the Columns tab. You can view the table data by selecting the Sample tab.
If the table is partitioned, you can view the partition columns by clicking the Partition Columns tab and display the partitions by clicking Show Partitions(n), where n is the number of partitions in the ACTIONS pane on the left.
When importing data, you can choose to append or overwrite the table's data with data from a file.