Using an External Database for Hue

By default, Cloudera Manager uses SQLite for Hue's database. If necessary, you can configure Cloudera Manager to use an external database such as MySQL or PostgreSQL as the database for Hue. The procedure described in this topic illustrates how to migrate the Hue database from the default SQLite installation to another database.

To configure Cloudera Manager to use an external database for Hue

  1. Using the Cloudera Manager Admin Console, click the service instance for the Hue database you are reconfiguring. The Hue service instance page in Cloudera Manager Admin Console appears.
  2. Click Actions and click Stop. Confirm you want to stop the service by clicking Stop. If the Hue service is already stopped, skip this step.
  3. Click Actions for the Hue service, and click Dump Database. Confirm you want to dump the database by clicking Dump Database.
  4. Open the database dump file (by default /tmp/hue_database_dump.json) and remove all JSON objects with 'useradmin.userprofile' in the 'model' field. (You can verify the location of the Database Dump File by searching for Database Dump File in the Hue Configuration settings.)

Continue with instructions for configuring Hue to use MySQL (MyISAM or InnoDB) or PostgreSQL. When you complete the instructions, start the Hue server.