Dumping and Loading an Oozie Database Using Cloudera Manager
Minimum Required Role: Full Administrator
Oozie is a stateless web application by design. All information about running and completed workflows, coordinators, and bundle jobs are stored in a relational database.
Oozie supports a lightweight embedded (Derby) database, however Cloudera strongly recommends that you use an external database for production systems. For more information, see Supported Databases and Configuring an External Database for Oozie.
The migration tool is not optimized for migrating large databases. If your database size exceeds 1 million rows, Cloudera recommends that you purge it first. See Configuring Oozie Data Purge Settings Using Cloudera Manager.
This page explains how to dump and load the Oozie database.
Dumping the Oozie Database
- Stop the Oozie server (in HA mode, stop all Oozie servers).
- In the Cloudera Manager Admin Console, go to the Oozie service status page.
- Select Stop. . Confirm you want to stop the service by clicking
- Specify Database Dump File:
- Go to the Configuration page.
- Select .
- Select .
- Set a file location for the Database Dump File.
- Select Dump Database. . Confirm that you want to dump the database to the specified location by clicking
Loading the Oozie Database
To load your Oozie database:
- Stop the Oozie server (in HA mode, stop all Oozie servers).
- Install and configure the empty database in which to load your Oozie data. See Configuring an External Database for Oozie. The db.version of the database must match the db.version of the dump file.
- Select Create Oozie Database Tables. . Confirm you want to create the database tables by clicking
- Verify Database Dump File is set correctly:
- In the Cloudera Manager Admin Console, click the Oozie service.
- Go to the Configuration page.
- Select .
- Select .
- Verify the Database Dump File property value.
- Select Load Database. . Confirm you want to dump the database to the specified location by clicking
- Select Start. . Confirm you want to start the service by clicking