How to Populate the Hue Database
Not every action in the Hue UI touches the Hue database (embedded or custom). This page explains how to populate the database with user account information, Hive queries, and Oozie workflows. This is useful when testing the migration of a database.
- Add New User (Alice)
- Log on to Hue as the administrator.
- Open the Administration drop down sand select Manage Users.
- Click Add user and follow the three steps.
- Add a username (for example, "Alice") and password and click Next.
- Ensure Alice belongs to the default group and click Next.
- Give Alice Superuser status (for Hue, not HDFS) and click Add user.
- Log out as the administrator and log on as Alice.
- Save Hive Query (customers.sql)
- Go to by clicking the Hue logo.
- Click the Examples tab ("Step 2").
- Click download Hive to install sample databases.
- Go to the Metastore Manager (or ).
- Click the default database and customers (sample) table.
- Click Browse Data to automatically generate a select * query in the Hive editor.
- Run the query with your cursor in the editor and CTRL + Enter, or by clicking the Run icon .
- Save the query as customers.sql by clicking the Save icon .
- View the query on the Saved Queries tab in the Hive editor.
- Save Oozie Workflow (Customers Workflow)
- Go to Oozie by selecting, .
- Click the Create button.
- Rename "My Workflow" as "Customers Workflow" and click the Save icon .
- Drag the action icon for Saved Hive Query to the field, "Drop your action here."
- Select a saved query (customers.sql) from the drop down and click Add.
- Save the workflow by clicking the Save icon.
- Submit the workflow by clicking the icon and clicking Submit. You should see the workflow status change to .
- View the saved workflow (and all documents) by clicking the home icon .
Page generated May 18, 2018.
<< Hue Custom Database Tutorial | ©2016 Cloudera, Inc. All rights reserved | Hue Administration >> |
Terms and Conditions Privacy Policy |