Migrating from H2 to PostgreSQL database in YARN Queue Manager
If you prefer to migrate from an H2 database to a PostgreSQL database in YARN Queue Manager post-installation or upgrade, all your existing data in the H2 database will be transferred to PostgreSQL. The YARN Queue Manager will then establish connections and operate using the PostgreSQL database.
This migration supports only one-way transfer from H2 to PostgreSQL. Reverting to H2 after migration is not supported, and data migration from PostgreSQL back to H2 is not possible.
To continue using the embedded database, upgrade to Cloudera Data Platform (CDP) 7.1.9 CHF 2 and disregard these instructions. However, if you prefer to use PostgreSQL as the external database, use CDP 7.1.9 and follow these post-installation steps to migrate your database. See Known issues in 7.1.9 CHF 2 linked below for more information.
The roles users need to assign are the following:
SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN.You can use the following sample query or similar query to assign roles. You must record these values for use in step 4.
CREATE ROLE qmadmin PASSWORD 'password' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
CREATE DATABASE "configstore";
ALTER DATABASE "configstore" OWNER TO qmadmin;