Using Hue from Scratch
Hue provides the file browser function using a graphical user interface (GUI) so that you can view files and directories on Hive.
Prerequisites
You have installed Hive and Hue, and the Kerberos authentication cluster in the running state.
Procedure
- Access the Hue web UI. For details, see Accessing the Hue Web UI.
- Open the Hue web UI and choose .
- In Databases, select a Hive database, 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.
- Click the desired table name. All columns in the table are displayed.
- 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;
Click and select Explain. The editor checks the syntax and execution plan of the entered HiveQL statements. If the statements have syntax errors, the editor reports Error while compiling statement.
- Click , and select the engine for executing the HiveQL statements.
- Click to execute the HiveQL statements.
- In the command text box, enter show tables; and click . Check whether the hue-table table created in 5 exists in the result.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot